RCVMSG (Receive Message) syntax diagram
Pgm: B,I REXX: B,I Threadsafe: Yes >>-RCVMSG-------------------------------------------------------> >--+-PGMQ(--job-message-queue-name--)--| JMQID Details |------+--> | (1) | '-MSGQ(-------+-*PGMQ---------------------------------+--)-' | .-*LIBL/--------. | '-+---------------+--message-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------+----------------------------------> | .-*ANY---. | '-MSGTYPE(--+-*COPY--+--)-' +-*COMP--+ +-*DIAG--+ +-*EXCP--+ +-*FIRST-+ +-*INFO--+ +-*INQ---+ +-*LAST--+ +-*NEXT--+ +-*PRV---+ +-*RPY---+ '-*RQS---' >--+-----------------------------------+------------------------> | .-*NONE-------------. | '-MSGKEY(--+-*TOP--------------+--)-' '-&CL-variable-name-' (2) >--+---------------------------------+--------------------------> | .-0-----------------. | '-WAIT(--+-*MAX--------------+--)-' '-number-of-seconds-' >--+------------------------+-----------------------------------> | .-*YES------. | '-RMV(--+-*NO-------+--)-' '-*KEEPEXCP-' >--+-----------------------------------------------+------------> | .-*JOB---------------------------. | '-CCSID(--+-*HEX---------------------------+--)-' '-coded-character-set-identifier-' >--+-------------------------------+----------------------------> '-KEYVAR(--&CL-variable-name--)-' >--+----------------------------+-------------------------------> '-MSG(--&CL-variable-name--)-' >--+-------------------------------+----------------------------> '-MSGLEN(--&CL-variable-name--)-' >--+-------------------------------+----------------------------> '-SECLVL(--&CL-variable-name--)-' >--+----------------------------------+-------------------------> '-SECLVLLEN(--&CL-variable-name--)-' >--+-------------------------------+----------------------------> '-MSGDTA(--&CL-variable-name--)-' >--+----------------------------------+-------------------------> '-MSGDTALEN(--&CL-variable-name--)-' >--+------------------------------+-----------------------------> '-MSGID(--&CL-variable-name--)-' >--+----------------------------+-------------------------------> '-SEV(--&CL-variable-name--)-' >--+-------------------------------+----------------------------> '-SENDER(--&CL-variable-name--)-' >--+--------------------------------+---------------------------> | (3) .-*SHORT-. | '-SENDERFMT(-------+-*LONG--+--)-' >--+--------------------------------+---------------------------> '-RTNTYPE(--&CL-variable-name--)-' >--+-------------------------------+----------------------------> '-ALROPT(--&CL-variable-name--)-' >--+-----------------------------+------------------------------> '-MSGF(--&CL-variable-name--)-' >--+--------------------------------+---------------------------> '-MSGFLIB(--&CL-variable-name--)-' >--+-----------------------------------+----------------------->< '-SNDMSGFLIB(--&CL-variable-name--)-' JMQID Details .-*------------------------------------------------------------------. .-*SAME-. | .-*NONE-------. .-*NONE--------------. | |--(--+-+-*PRV--+--+-program-or-procedure-name--+-module-name-+--+-bound-program-name-+-+-+--)--| '-*EXT------------------------------------------------------------------------------'
Notes: