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:
- No more than 132 characters can be specified.
- No more that 3000 characters can be specified.
- All parameters preceding this point can be specified in positional form.
- A maximum of 99 repetitions.
- If TYPE is specified as *NONE, LEN must be *NONE also.
- If LEN is specified as *NONE, TYPE must be *NONE also.
- A maximum of 20 repetitions.
- If any of the parameter values are specified for DMPLST, *JOB is assumed to be part of the value(s).
- A maximum of 102 repetitions.