TAA Tools

The Display  Command  Keyword 2  command displays  or  prints a  simple
list  of the  keywords used  by a  command.   QSYS and  TAATOOL command
information  is supplied in  TAATOOL.  User  commands must be converted
to a file using CVTCMDKWD.

A typical command would be:


A spooled  file  would be  displayed  with one  line for  each  command
parameter used by ADDDAT.

Command constants

Some commands  use the KWD CONSTANT  function to pass  a constant value
to  the  CPP.   The CONSTANT  function allows  a  variation in  the CPP
processing when  the command is  used by  an internal  operation.   The
keywords using the  CONSTANT function will not appear  when the command
is prompted  for, but will appear in  the list displayed by DSPCMDKWD2.

For an example of this, do


The command has  2 keywords  (CALLTYPE and  USER) which  appear in  the
list, but not when the command is prompted for.

DSPCMDKWD2 escape messages you can monitor for

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

DSPCMDKWD2 Command parameters                         *CMD

   CMD           The qualified  name of  the command  to be  displayed.
                 The  library  value defaults  to  *LIBL.   A  specific
                 library or *CURLIB may also be used.

                 The command must exist and be found.

   CMDKWDPLIB    The library where the keyword information exists.

                 *DFT  is the default.  If  the command existed in QSYS
                 or TAATOOL at  the time the  TAA version was  created,
                 the  keyword   information  already  exists   in  file
                 TAACMDNS or TAACMDNU in TAATOOL and will be used.

                 If  the  command  exists in  a  user  library,  or was
                 created  after  the  TAA  version  was  created,   the
                 CVTCMDKWD command must  be used to create  the CMDFILP
                 file.    The library  where  the  CMDFILP file  exists
                 should be specified and not *DFT.

   OUTPUT        How to  output  the results.    * is  the  default  to
                 display the  spooled file  if the  command is  entered
                 interactively.   If the  display is ended  with F3/F12
                 or  the Enter key,  the spooled file  is deleted after
                 it is  displayed.   To  retain the  spooled file,  you
                 may use  the the System Request  'Cancel' function and
                 the spooled file will exist in a HLD status.

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


QSYS and  TAATOOL commands are supported  as they existed when  the TAA
version was  created.  Commands in user  libraries must be converted to


The following TAA Tools must be on your system:

     CVTCMDKWD       Convert command keyword
     RSNLSTMSG       Resend last message
     RTVDBFA         Retrieve data base file attributes
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message


None, if only  QSYS and TAATOOL  commands are specified.   Commands  in
user libraries must be converted to a CMDFILP file using CVTCMDKWD.

Objects used by the tool

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

   DSPCMDKWD2    *CMD                   TAACMFU       QATTCMD
   TAACMFUC      *PGM       CLP         TAACMFUC      QATTCL
   TAACMFUR      *PGM       RPG         TAACMFUR      QATTRPG

Added to TAA Productivity tools July 15, 2013

Home Page Up to Top