TAA Tools
SELPDMOPT       SELECT PDM OPTION                      TAAPDMB

The Select PDM Option  command is intended for the  WRKxxxPDM displays.
A  standard entry of  PD is  provided which  will display a  subfile of
the  available  options  in  the QAUOOPT  (or  equivalent)  file.   The
subfile appears  in  a  window and  options  exist to  Execute,  Prompt
(using  F4), or Display  the command  details.   A function  key allows
access to the TAA command ADDPDMOPT.

You  would normally begin by using the  ADDPDMOPT tool to add an option
for the SELPDMOPT tool.


The default option value  assigned is PD.   Once the PD option  exists,
you can  enter PD next to  one of your  members or objects and  see the
SELPDMOPT subfile.

It  is is  not a requirement  that the  options file be  named QAUOOPT,
but it must have the same definition as the system shipped version.

The function has the following advantages:

  **   If you do not  remember the options or  what they are used  for,
       the window subfile provides a simple solution.

  **   If  you  are  developing a  new  option,  the  PDM  required  &x
       entries  are  not necessarily  easy  to  enter  correctly.   The
       subfile  display  option allows  you to  see  the command  as it
       would be executed.

The SELPDMOPT  command is  used for  documentation purposes  only.   If
the command is run, an escape message will be issued.

The TAAPDMBC  program is the program  that should be specified  for the
PDM  option.  This will happen automatically  if you use ADDPDMOPT.  If
you do not use ADDPDMOPT, the command to enter is:

                          '&A' &B &C '&D' &E '&F' &H '&J' &L +
                          &N &O &P &R &S &T &U &V &W &X)

When  an PDM  substitution  value  such  as  '&J'  is  used,  the  JOBD
parameter  appears  in the  string  as  JOBD('xxx/yyy').   This  is  an
incorrect  syntax  when  used  directly,  but  operates correctly  when
executed using the tool.

Command parameters                                    *CMD

None.  The SELPDMOPT command  is used for documentation purposes  only.


A maximum of 200 options are supported.

PDM  allows a  command with  &x  substitution values  in  a 250  field.
This field  cannot expand beyond  999 bytes when the  actual values are
placed in the command.


The following TAA Tools must be on your system:

     ADDPDMOPT       Add PDM option
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message


You  must first enter  an option (PD  is the default)  into the QAUOOPT
file (or your  equivalent) and the  previously described command.   The
preferred method of achieving this is with the ADDPDMOPT tool.

Objects used by the tool

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

   SELPDMOPT     *CMD                   TAAPDMB       QATTCMD
   TAAPDMBC      *PGM       CLP         TAAPDMBC      QATTCL
   TAAPDMBC2     *PGM       CLP         TAAPDMBC2     QATTCL
   TAAPDMBC3     *PGM       CLP         TAAPDMBC3     QATTCL
   TAAPDMBR      *PGM       RPG         TAAPDMBR      QATTRPG


   TAAPDMBC2  CL pgm

   TAAPDMBR    RPG pgm
     TAAPDMBD    Display file
     TAAPDMBC3   Sub pgm for ADDPDMOPT

Added to TAA Productivity tools February 1, 1997

Home Page Up to Top