Command reference / msg
SNDBRKMSG
Send Break Message
Sends an immediate message (one that is not predefined and not stored in a message file) to one or more work station message queues. The message is always delivered in break mode, so the DSPMSG display appears when it is received regardless of the queue's delivery mode, severity, or break handling program, although the BRKMSG job attribute can suppress it in some cases. Mainly intended for system operator use.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- Can send break messages to work station message queues only.
- Cannot send inquiry messages (MSGTYPE(INQ)) to multiple work stations.
Parameters
MSG
Message text
Specifies the immediate message to send, up to 512 characters. Enclose the text in apostrophes if it contains blanks or special characters. Required.
TOMSGQ
To work station message queue
Specifies one or more work station message queues that receive the break message. Only work station queue names are valid, and only *LIBL or QSYS can be given as the library.
Suggested / special values:
*ALLWS
*ALLWS- Sends the break message to all work station and PC message queues. Cannot be used with MSGTYPE(*INQ).
*LIBL- Searches the libraries in the current thread's library list until the first match is found.
Qualified parts (object, then library; write LIBRARY/OBJECT)
To work station message queue
To work station message queue
Library
Library
Suggested / special values:
*LIBL
MSGTYPE
Message type
Specifies whether the break message is informational or an inquiry. An inquiry may require a response from the work station user.
Allowed values:
*INFO, *INQ
*INFO- Sends an information-only message in break mode.
*INQ- Sends an inquiry the receiving work station must reply to. It cannot be sent to multiple queues with one command.
RPYMSGQ
Message queue to get reply
Specifies, only when an inquiry is sent, the message queue that receives the user's reply. The default is QSYSOPR.
*LIBL- Searches the libraries in the current thread's library list until the first match is found.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Message queue to get reply
Message queue to get reply
Library
Library
Suggested / special values:
*LIBL
CCSID
Coded character set ID
Specifies the CCSID of the message text supplied in MSG. Valid values are 1 through 65535, and the command validates the value.
Suggested / special values:
*HEX, *JOB
*JOB- The text is assumed to be in the CCSID of the job running this command.
*HEX- The text is not converted; CCSID 65535 is used.
Examples
SNDBRKMSG MSG('Inventory application shuts down at 4:00 PM.')
Sends the message to all work station message queues. Signed-on work stations get it in break mode, and the message is also added to queues of work stations that are not signed on.
Generated from os/cl/catalog/SNDBRKMSG.json and os/cl/help/SNDBRKMSG.json.