TAA Tools
CHGPGM2         CHANGE PROGRAM 2                       TAAPGOD

The Change  Program  2 command  allows a  change  to one  or more  *PGM
object  types.    Not  all  of  the CHGPGM  parameters  are  supported.
CHGPGM2  simplifies making  mass changes to  *PGM objects.   For a more
complete understanding of the  parameters, see the CHGPGM command  help
text.   A *PGM object  owned by one of  the system profiles  may not be
changed.

You must have *ALLOBJ special authority to use CHGPGM2.

Not all  options are valid for all program  types.  For example, an OPM
program cannot be  changed to  RMVOBS(*CRTDTA).  If  the messages  from
CHGPGM2 are not clear, use CHGPGM.

A typical command would be:

             CHGPGM2   PGM(ABC/*ALL) RMVOBS(*ALL)

All  *PGM objects  in  library ABC  would  have observability  removed.
All other values in program objects would remain unchanged.

At  least one  of  the values  to  be changed  must be  other  than the
default of *SAME.

CHGPGM2 escape messages you can monitor for
-------------------------------------------

      TAA9891    The command failed.  Diagnostic messages will exist
      TAA9892    Not all values to be changed can be *SAME

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

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

   PGM           The qualified name of the  *PGM object to be  changed.
                 A  single program,  a  generic  name, or  the  special
                 value *ALL may be used.

                 A single library must be specified.

   OPTIMIZE      Whether  to  optimize  the  program.    *SAME  is  the
                 default.

                 *YES,  *FULL, *BASIC, *NONE, 40, 30,  20, or 10 may be
                 entered.  Some  options are not  valid for an  unbound
                 program.

   RMVOBS        Whether  to  remove  observability from  the  program.
                 *SAME  is the default.   Other single  values that may
                 be entered are *ALL or *NONE.

                 A List of up  to 4 special values  may be entered  for
                 *CRTDTA, *DBGDTA, *BLKORD, or *PRCORD.

                 Some options are not valid for an unbound program.

   PRFDTA        Whether to change  the profiling data of  the program.
                 *SAME  is  the default.    One of  the  special values
                 *NOCOL, *CLR, *APYBLKORD,  *APYPRCORD, or *APYALL  may
                 be entered.

                 Some options are not valid for an unbound program.

   DLTSPLF       A *YES/*NO  value for  whether to  delete the  spooled
                 file  if  one  was  created  because the  program  was
                 re-created.

                 *YES  is the default.   If no  spooled file exists, no
                 error occurs

                 *NO may  be  specified  to retain  any  spooled  files
                 that are created.


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

You must have *ALLOBJ special authority to use CHGPGM2.

A *PGM object  owned by one of the system profiles  may not be changed.

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

The following TAA Tools must be on your system:

     CHKALLOBJ       Check *ALLOBJ special authority
     CHKIBMPRF       Check IBM profile
     CHKOBJ3         Check object 3
     CVTOBJD2        Convert object description 2
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVDIAGMSG      Retrieve diagnostic message
     RTVLSTSPLF      Retrieve last spooled file
     SNDCOMPMSG      Send completion message
     SNDDIAGMSG      Send diagnostic message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message

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

None, the tool is ready to use.

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

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

   CHGPGM2       *CMD                   TAAPGOD       QATTCMD
   TAAPGODC      *PGM       CLP         TAAPGODC      QATTCL
					

Added to TAA Productivity tools July 15, 2013


Home Page Up to Top