TAA Tools
PMTCMD          PROMPT COMMAND                         TAACMEO

The Prompt Command command  is intended for situations where  a command
is  entered into  a field  that will  be checked  by  QCMDCHK.   If the
command  to be  entered should  be prompted,  QCMDCHK ensures  that all
required parameters are entered.   PMTCMD allows you to enter  just the
command name.   You may optionally  enter some keywords  and values and
determine if a keyword value should be protected.

A typical command would be:

             PMTCMD        CMD(DSPUSRPRF)

When  the command  runs, the DSPUSRPRF  command would  be prompted for.
Any user profile could be displayed (if authorized).

A variation is to prompt with a user profile name such as:

             PMTCMD        CMD(DSPUSRPRF) PARM((USRPRF xxxx))

The DSPUSRPRF command would be  prompted for with the USRPRF  parameter
filled  in with  the  xxxx user.    The operator  would  be allowed  to
change  the value.   To prevent the  operator from changing  the value,
the command would be entered as:

             PMTCMD        CMD(DSPUSRPRF) PARM((USRPRF xxxx *YES))

When the DSPUSRPRF command prompt  appears, the USRPRF parameter  would
be protected.

An  additional option  exists  to determine  whether  the operator  can
enter any parameters other than those described in the PARM list.

PMTCMD escape messages you can monitor for
------------------------------------------

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

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

   CMD           The command  to be prompted.  A  library qualifier may
                 be  entered.    If  the  library  qualifier  does  not
                 exist, *LIBL is used.

   FULLPMT       A *YES/*NO  value  for whether  all parameters  should
                 be  prompted for.   The  default is  *YES  meaning all
                 parameters  may be entered  by the operator.   This is
                 the same  function  as placing  a ?    in front  of  a
                 command to be used for command prompting.

                 *NO may  be specified  to mean  only those  parameters
                 described in the PARM list will be prompted for.

   PARM          A list  of up to 50 parameters to  be entered.  If the
                 full command  should be  prompted for,  no  parameters
                 should be  entered.  Each  parameter is  made up of  3
                 parts.

                      KEYWORD.   The keyword of  the command parameter.

                      VALUE.   The  value for  the keyword.   Up  to 32
                      characters may be entered.

                      PROTECT.    A  *YES/*NO  value  for  whether  the
                      parameter  should  be  protected  or  not.    The
                      default  is *NO  meaning the operator  can change
                      the value when the  command prompt occurs.   *YES
                      may  be  entered  to prevent  the  operator  from
                      changing  the value  (this  is the  same function
                      as the '?*' in command prompting).

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

None.

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

The following TAA Tools must be on your system:

     EXTLST          Extract list
     RSNALLMSG       Resend all messages
     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
   ------        ----    ---------      ----------    ----------

   PMTCMD        *CMD                   TAACMEO       QATTCMD
   TAACMEOC      *PGM       CLP         TAACMEOC      QATTCL
					

Added to TAA Productivity tools September 15, 2002


Home Page Up to Top