ADDMSGD (Add Message Description) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
>>-ADDMSGD--MSGID(--message-identifier--)----------------------->
 
          .-*LIBL/--------.
>--MSGF(--+---------------+--message-file-name--)--------------->
          +-*CURLIB/------+
          '-library-name/-'
 
                            (1)
>--MSG(--'--message-text--'-------)----------------------------->
 
>--+-------------------------------------------------+---------->
   |          .-*NONE---------------------------.    |
   |          |                            (2)  |    |
   '-SECLVL(--+-'--second-level-message--'------+--)-'
 
                                  (3)
>--+----------------------------+------------------------------->
   |       .-00------------.    |
   '-SEV(--+-severity-code-+--)-'
 
>--+-------------------------------+---------------------------->
   |       .-*NONE------------.    |
   |       | .--------------. |    |
   |       | V         (4)  | |    |
   '-FMT(--+---| FMT |------+-+--)-'
 
>--+---------------------------+-------------------------------->
   |       (5)   .-*CHAR--.    |
   '-TYPE(-------+-*NONE--+--)-'
                 +-*DEC---+
                 +-*ALPHA-+
                 '-*NAME--'
 
>--+----------------------------------------+------------------->
   |      (6)   .-*TYPE----------------.    |
   '-LEN(-------+-*NONE----------------+--)-'
                '-length--+----------+-'
                          '-to-value-'
 
>--+---------------------------------------------------------+-->
   |          .-*NONE-----------------------------------.    |
   |          | .--------------------------------.      |    |
   |          | V                                | (7)  |    |
   '-SPCVAL(--+---+-special-value--------------+-+------+--)-'
                  '-(--from-value--to-value--)-'
 
>--+-----------------------------------------+------------------>
   |          .-*NONE----------.             |
   |          | .------------. |             |
   |          | V       (7)  | |             |
   +-VALUES(--+---value------+-+--)----------+
   |         .-*NONE--------------------.    |
   +-RANGE(--+-lower-value--upper-value-+--)-+
   |       .-*NONE-.                         |
   '-REL(--+-*LT---+--value--)---------------'
           +-*LE---+
           +-*GT---+
           +-*GE---+
           +-*EQ---+
           +-*NL---+
           +-*NG---+
           '-*NE---'
 
>--+----------------------------------+------------------------->
   |       .-*NONE---------------.    |
   '-DFT(--+-'--default-reply--'-+--)-'
 
>--+---------------------------------------------------------+-->
   |          .-*NONE-----------------------------------.    |
   |          | .-*LIBL/--------.                       |    |
   '-DFTPGM(--+-+---------------+--default-program-name-+--)-'
                +-*CURLIB/------+
                '-library-name/-'
 
>--+-------------------------------------------------------------+-->
   |                 .-------------------------------.           |
   |         (8)     V .-*JOB----------------------. |   (9)     |
   '-DMPLST(-------+---+-*JOBDMP-------------------+-+-+-------)-'
                   |   +-*JOBINT-------------------+   |
                   |   '-message-data-field-number-'   |
                   '-*NONE-----------------------------'
 
>--+----------------------------------------------+------------->
   |       .-*CURRENT------.  .-1------------.    |
   '-LVL(--+-creation-date-+--+-level-number-+--)-'
 
>--+--------------------------------------------------+--------->
   |          .-*NO------------------------------.    |
   |          |                .-*NONE---------. |    |
   '-ALROPT(--+-+-----------+--+---------------+-+--)-'
                +-*IMMED----+  '-format-number-'
                +-*UNATTEND-+
                '-*DEFER----'
 
>--+----------------------+------------------------------------->
   |          .-*NO--.    |
   '-LOGPRB(--+-*YES-+--)-'
 
>--+-----------------------------------------------+-----------><
   |         .-*JOB---------------------------.    |
   '-CCSID(--+-*HEX---------------------------+--)-'
             '-coded-character-set-identifier-'
 
FMT
 
                               .-2-.
                      .-*VARY--+-4-+-.
|--(--+-+-*QTDCHAR-+--+-length-------+--------------+--)--------|
      | +-*CHAR----+                                |
      | +-*HEX-----+                                |
      | '-*SPP-----'                                |
      |                       .-0-----------------. |
      +-*DEC--decimal-digits--+-decimal-positions-+-+
      |       .-2-.                                 |
      +-*BIN--+-4-+---------------------------------+
      |       '-8-'                                 |
      |        .-2-.                                |
      +-*UBIN--+-4-+--------------------------------+
      |        '-8-'                                |
      |                .-2-.                        |
      +-*CCHAR--*VARY--+-4-+------------------------+
      +-*DTS----------------------------------------+
      +-*SYP----------------------------------------+
      '-*ITV----------------------------------------'
 
 

Notes:

  1. No more than 132 characters can be specified.

  2. No more that 3000 characters can be specified.

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

  4. A maximum of 99 repetitions.

  5. If TYPE is specified as *NONE, LEN must be *NONE also.

  6. If LEN is specified as *NONE, TYPE must be *NONE also.

  7. A maximum of 20 repetitions.

  8. If any of the parameter values are specified for DMPLST, *JOB is assumed to be part of the value(s).

  9. A maximum of 102 repetitions.