TAA Tools
SCNDEVPRTA      SCAN DEVICE PRINTER ATTRIBUTES         TAADEVI

The  Scan Device  Printer  Attributes command  scans  one, generic,  or
printer devices  for attribute values.  This acts  as a simple query to
determine the value of attributes of printer devices.

A typical command would be:

              SCNDEVPRTA   DEVD(*ALL) ATTR(OWNER) SCNVAL(xxx)

A  spooled file  would be  displayed of  all printer devices  that have
the specified owner.

SCNDEVDSPA escape messages you can monitor for
----------------------------------------------

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

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

   DEVD          The printer  device  description  to be  scanned.    A
                 specific  name,  a  generic  name,  or  *ALL  for  all
                 printer devices must be specified.

   ATTR          The  printer device attribute to be  scanned for.  The
                 value must be one of the following:

                 DEVCLS.  Device class.   The scan value must be  *LCL,
                 *RMT, *VRT, *SNTP, or *LAN.

                 TYPE.   The device type.   The scan value must  be the
                 type requested.

                 MODEL.   The  model  of the  device.   The  scan value
                 must be the model requested.

                 OWNER.  Owner  of the  device description.   The  scan
                 value must be the owner requested.

                 CRTDATE.  The  create date of the  device description.
                 The SCNVAL must be a valid date in job format.

                 LCLADR.  The local device address.

                 SWTSET.  The switch setting of the address.

                 PORT.   The  port  number of  the address.    5 digits
                 must be entered.

                 LCLLOCNAME.  The local location name.

                 RMTLOCNAME.  The remote location name.

                 RMTID.  The remote network ID of the device.

                 MSGQ.    The message  queue  assigned for  the printer
                 device.

                 MSGQLIB.  The library of the message queue.

                 CTLD.  The controller the device is attached to.

                 ONLINE.   Whether the  device is to  be placed  online
                 at IPL.  The scan value must be *YES or *NO.

                 TEXT.   The  text  description.   The  SCNOPR must  be
                 *CT.   Both  the  SCNVAL and  the text  description of
                 the  object  will  be  folded  to  upper  case  before
                 scanning.

                 AFP.  Whether the device is AFP capable.

                 MODE.   The  name  of the  mode  used  for the  device
                 limits.

                 ERRMSG.

                 WCST.  The workstation customization object.

                 WCSTLIB.     The   workstation   customization  object
                 library.

                 PPRDWR1.  The paper drawer 1.

                 PPRDWR2.  The paper drawer 2.

                 ENVELOPE.   The type  of envelope  used in  the  third
                 paper source.

                 LAN.  The driver type used to attach.

                 USRDFNOBJ.     The  name   of  the   object  used   by
                 applications.

                 USRDFNOBJL.   The library name  of the object  used by
                 applications.

                 USRDFNOBJT.   The  object type  of the  object used by
                 applications.

                 SYSDRVPGM.  The system defined driver program.

                 TRANSFORM.     Whether   the  host   print   transform
                 function is used.

   SCNVAL        The value  to be scanned for.   Up to 10  bytes may be
                 entered.

                 To   scan  for  non-blank   entries  enter   '  '  and
                 SCNOPR(*NE).

                 See the  ATTRIBUTE  parameter for  what is  valid  for
                 the scan value.

   SCNOPR        The scan operator to be used.  *EQ is the default.

                 *NE,  *GT, *GE,  *LT, *LE,  or *CT  (contains) may  be
                 entered.   Non-meaningful  functions such  as scanning
                 the ONLINE attribute (supports  only *YES or *NO)  for
                 a scan operator other than *EQ/*NE are rejected.

   OUTPUT        How  to output  the  results.   *  is the  default  to
                 display  the spooled  file if  the command  is entered
                 interactively.   The spooled file  is deleted after it
                 is displayed.

                 If  the command  is  entered  in batch  or  *PRINT  is
                 specified, the  spooled file  is output  and retained.


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

None.

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

The following TAA Tools must be on your system:

     CHKVAL          Check value
     CVTDEVPRT       Convert device print
     RTVVALA         Retrieve value attributes
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message

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

None, the tool is ready to use.

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

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

   SCNDEVPRTA    *CMD                   TAADEVI       QATTCMD
   TAADEVIC      *PGM       CLP         TAADEVIC      QATTCL
   TAADEVIR      *PGM       RPG         TAADEVIR      QATTRPG
					

Added to TAA Productivity tools January 15, 2010


Home Page Up to Top