TAA Tools
CVTDEVPRT       CONVERT DEVICE PRINTER                 TAADEVG

The  Convert  Device  Printer  command  creates   an  outfile  of  one,
generic,  or  all  printer  devices.    The outfile  created  is  named
DEVPRTP.    The information  in the  outfile is  taken from  the device
description for each device.

The model file is TAADEVGP with a format name of DEVPRTR.

The  devices  which  are  converted  can  be  seen   by  using  DSPOBJD
OBJ(*ALL) OBJTYPE(*DEVD) and having an Attribute of:

        - PRTLCL
        - PRTRMT
        - PRTVRT
        - PRTLAN

A typical command would be:

             CVTDEVPRT    OUTLIB(QTEMP)

The DEVPRTP  file would be  created in QTEMP  with one record  for each
of the printer types described previously.

CVTDEVPRT escape messages you can monitor for
---------------------------------------------

None.  Escape messages from based on functions will be re-sent.

Command parameters                                    *CMD
------------------

   DEVD          The  name of the  device description  to be converted.
                 *ALL is the  default.   A specific device  description
                 or a generic name may be entered.

   OUTLIB        The  library  in  which   the  DEVPRTP  file  will  be
                 placed.   The default is  *LIBL.  If  the DEVPRTP file
                 does not already exist,  a library must be  specified.

   OUTMBR        The member  of the DEVPRTP  file to be  used.  If  the
                 member does  not exist, it  is added.   The default is
                 DEVPRTP.

   REPLACE       A  *YES/*NO  value for  whether  the member  should be
                 cleared before writing  records into it.   The default
                 is *YES.

                 *NO  may  be  specified  to add  records  to  existing
                 data.

Restrictions
------------

None.

Prerequisites
-------------

The following TAA Tools must be on your system:

     DUPFILFMT       Duplicate file format
     EDTVAR          Edit variable
     RTVDEVPRT       Retrieve device printer
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

   Object        Type    Attribute      Src member    Src file
   ------        ----    ---------      ----------    ----------

   CVTDEVPRT     *CMD                   TAADEVG       QATTCMD
   TAADEVGC      *PGM       CLP         TAADEVGC      QATTCL
   TAADEVGC2     *PGM       CLP         TAADEVGC2     QATTCL
   TAADEVGR      *PGM       RPG         TAADEVGR      QATTRPG
   TAADEVGP      *FILE      PF          TAADEVGP      QATTDDS
					

Added to TAA Productivity tools December 15, 2002


Home Page Up to Top