TAA Tools
RPLCMD        REPLACE COMMAND                            TAACMDH

The Replace  Command command re-creates  an existing command  using the
parameters that are stored in the existing command.

The intent  of RPLCMD is  to provide a  simple re-create when  only the
command definition source has been changed.

A typical command would be entered as:

       RPLCMD     CMD(xxxxxx)

RPLCMD  extracts the  existing parameters from  the command  (e.g.  the
command  processing program,  the  value  for  ALLOW,  MODE  etc.)  and
re-creates the command.

The  command is created  with the  REPLACE(*YES) option  which provides
for the same security as the original object.

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

   CMD           The  qualified  name of  the command  to  be replaced.
                 The library defaults to *LIBL.

   SRCFILE       The qualified  name of  the source  file  to be  used.
                 The default is  *OBJD meaning to use the  same file as
                 is  specified in  the  object description  (the source
                 file originally used).

   SRCMBR        The source member to  be used.   The default is  *OBJD
                 meaning  to   use  the  same   source  member   as  is
                 specified  in  the   object  description  (the  source
                 member originally used).

   OWNER         Who  should  be  the owner  of  the new  object.   The
                 default is *SAME,  meaning the same owner  will exist.

                 If  the owner  is  the group  profile  of the  current
                 user,  OWNER(*SAME) may be used.   Otherwise, you must
                 be the  owner or  have  *ALLOBJ special  authority  to
                 use OWNER(*SAME).

                 *NEW  may be  specified  to allow  you  to become  the
                 owner  of the  command.  You  must have  the *OBJEXIST
                 right to the existing command to specify *NEW.

   DLTSPLF       A *YES/*NO  parameter  for whether  the  spooled  file
                 for  the compiler  listing should  be  deleted if  the
                 create  is successful.    *NO is  default  meaning the
                 spooled file is always retained.

                 *YES  may be specified  to delete the  spooled file if
                 the create is successful.

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

None.

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

The following TAA Tools must be on your system:

      RTVCMDA       Retrieve command attributes
      SNDCOMPMSG    Send completion message
      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
   ------        -----      ---------      ----------     -----------

   RPLCMD        *CMD                      TAACMDH        QATTCMD
   TAACMDHC      *PGM          CLP         TAACMDHC       QATTCL
					

Added to TAA Productivity tools April 1, 1995


Home Page Up to Top