ADDEXITPGM (Add Exit Program) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: Yes
>>-ADDEXITPGM---EXITPNT(--exit-point-name----)------------------>
 
>----FORMAT(--exit-point-format-name----)----------------------->
 
>----PGMNBR(--+-*LOW-----------+---)---------------------------->
              +-*HIGH----------+
              '-program-number-'
 
           .-*CURLIB/------.                     (2)
>----PGM(--+---------------+--program-name----)----------------->
           '-library-name/-'
 
>-----+-------------------------------+------------------------->
      |        .-*BLANK--------.      |
      '-TEXT(--+-*MSGID--------+---)--'
               '-'description'-'
 
>-----+---------------------------------------+----------------->
      |        (1)                            |
      '-MSGID(-------message-identifier----)--'
 
>-----+--------------------------------------------------------+>
      |       (1)   .-*LIBL/--------.                          |
      '-MSGF(-------+---------------+--message-file-name----)--'
                    '-library-name/-'
 
>-----+-------------------------+------------------------------->
      |           .-*NO--.      |
      '-REPLACE(--+-*YES-+---)--'
 
>-----+----------------------------+---------------------------->
      |              .-*NO--.      |
      '-CRTEXITPNT(--+-*YES-+---)--'
 
>-----+------------------------------+-------------------------->
      |           .-*UNKNOWN--.      |
      '-THDSAFE(--+-*NO-------+---)--'
                  '-*YES------'
 
>-----+-------------------------------+------------------------->
      |             .-*SYSVAL--.      |
      '-MLTTHDACN(--+-*MSG-----+---)--'
                    +-*NORUN---+
                    '-*RUN-----'
 
>-----+----------------------------------------------------------------------------+>
      |          .-*NONE--------------------------------------------------------.  |
      |          |  .-*JOB-----------.   .-*CALC----------.                     |  |
      '-PGMDTA(--+--+-CCSID-for-data-+---+-length-of-data-+--exit-program-data--+--'
 
>--------------------------------------------------------------><
 

Notes:

  1. If TEXT(*MSGID) is specified, MSGID and MSGF must also be specified.

  2. All parameters preceding this point can be specified in positional form.


[ Information Center Home Page | Feedback ] [ Legal | AS/400 Glossary ]