SNDMSG (Send Message) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: Yes
>>-SNDMSG--MSG(--'message-text'--)------------------------------>
 
>--+--------------------------------------------------------------------+-->
   +-TOUSR(--+-*SYSOPR-----------+--)-----------------------------------+
   |         +-*REQUESTER--------+                                      |
   |         +-*ALLACT-----------+                                      |
   |         '-user-profile-name-'                                      |
   '-TOMSGQ(--+-*SYSOPR--------------------------------------------+--)-'
              | .------------------------------------------------. |
              | V   .-*LIBL/--------.                       (1)  | |
              '---+-+---------------+--message-queue-name-+------+-'
                  | +-*CURLIB/------+                     |
                  | '-library-name/-'                     |
                  '-*HSTLOG-------------------------------'
 
>--+------------------------+----------------------------------->
   |           .-*INFO-.    |
   '-MSGTYPE(--+-*INQ--+--)-'
 
                                                              (2)
>--+--------------------------------------------------------+------->
   |           .-*WRKSTN-------------------------------.    |
   |           | .-*LIBL/--------.                     |    |
   '-RPYMSGQ(--+-+---------------+--message-queue-name-+--)-'
                 +-*CURLIB/------+
                 '-library-name/-'
 
>--+-----------------------------------------------+-----------><
   |         .-*JOB---------------------------.    |
   '-CCSID(--+-*HEX---------------------------+--)-'
             '-coded-character-set-identifier-'
 
 

Notes:

  1. A maximum of 50 repetitions.

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