CHGPGM (Change Program) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
>>-CHGPGM------------------------------------------------------->
 
        (1)   .-*USRLIBL/-----.                            (2)     (3) (4)
>--PGM(-------+---------------+--+-*ALL------------------+-------)----------->
              '-library-name/-'  +-program-name----------+
                                 '-generic*-program-name-'
 
>--+------------------------------+----------------------------->
   |            .-*SAME------.    |
   '-OPTIMIZE(--+-+-*YES-+---+--)-'
                | '-*NO--'   |
                +-40---------+
                +-+-*FULL-+--+
                | '-30----'  |
                +-+-*BASIC-+-+
                | '-20-----' |
                '-+-*NONE-+--'
                  '-10----'
 
>--+------------------------+--+--------------------------+----->
   |          .-*SAME--.    |  |             .-*SAME-.    |
   '-USRPRF(--+-*USER--+--)-'  '-USEADPAUT(--+-*YES--+--)-'
              '-*OWNER-'                     '-*NO---'
 
>--+--------------------------------------+--------------------->
   |          .-*SAME----------------.    |
   '-RMVOBS(--+-*ALL-----------------+--)-'
              +-*NONE----------------+
              | .-------------.      |
              | V             | (5)  |
              '---+-*DBGDTA-+-+------'
                  +-*CRTDTA-+
                  +-*BLKORD-+
                  '-*PRCORD-'
 
>--+-------------------------------------------------+---------->
   |             .-*SAME------------------------.    |
   '-ENBPFRCOL(--+-*NONE------------------------+--)-'
                 +-*PEP-------------------------+
                 | .-*FULL------.  .-*ALLPRC--. |
                 '-+-*ENTRYEXIT-+--+-*NONLEAF-+-'
 
>--+----------------------------+------------------------------->
   |          .-*SAME------.    |
   '-PRFDTA(--+-*NOCOL-----+--)-'
              +-*COL-------+
              +-*CLR-------+
              +-*APYBLKORD-+
              +-*APYPRCORD-+
              '-*APYALL----'
 
>--+--------------------------+--+------------------------+----->
   |             .-*SAME-.    |  |          .-*NO----.    |
   '-TERASPACE(--+-*NO---+--)-'  '-FRCCRT(--+-*YES---+--)-'
                 '-*YES--'                  '-*NOCRT-'
 
>--+---------------------------------+-------------------------->
   |        .-*SAME-------------.    |
   '-TEXT(--+-*BLANK------------+--)-'
            '-'--description--'-'
 
>--+------------------------------------------------------+----><
   |          .-*SAME--------------------------------.    |
   '-LICOPT(--+-*NONE--------------------------------+--)-'
              '-'--Licensed-Internal-Code-options--'-'
 
 

Notes:

  1. QSYS and QGDDM cannot be specified for the library unless the only change is a removal of observability.

  2. *ALL or a generic request cannot be specified with *USRLIBL for the library qualifier.

  3. All parameters preceding this point can be specified positionally.

  4. All parameters preceding this point are key parameters.

  5. A maximum of 4 repetitions.