SEND
This command sends a message to a TSO or IMS user.
Command | Parameters |
|---|---|
SEND | 'msgtext' LTERM(terminal)|USER(TSO_USERID) |
The following table describes the parameters:
Parameter | Function | Notes |
|---|---|---|
'msgtext' | Message to be sent to the user | The maximum length of the message text is 252 bytes when LTERM is coded; otherwise, the maximum length is 120 bytes. This length includes the SEND ' ' USER( ) portion of the command. |
LTERM | IMS Lterm to receive the message | Either LTERM or USER must be specified. |
USER | TSO user ID to receive the message | Either LTERM or USER must be specified. |
Condition codes are listed in the following table:
Value | Description |
|---|---|
0 | Command was executed successfully. |
8 | Length of command exceeds maximum. |
12 | No destination was supplied. |
16 | Invalid syntax was used. |
Example 1
This command sends a message to the TSO user CWB1.
If the user is not currently logged on, the message will be discarded.
"IMFEXEC SEND 'I AM SENDING YOU THIS MESSAGE' USER(CWB1)"
CLIST example:
Example 2
This command sends a message to the IMS LTERM R35769D of the IMS system to which the BBI-SS PAS is connected.
REXX EXEC example:
"IMFEXEC SEND 'I AM SENDING YOU THIS MESSAGE' LTERM(R35769D)"
CLIST example:
Related topic