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

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.

Type
*CHAR
Required
Yes
Length
512
Case
Mixed case

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.

Type
*QUAL
Required
Yes
List limit
50
Case
Uppercase

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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*INFO
Length
5
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
QSYSOPR
Case
Uppercase
*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

Type
*NAME
Required
No
Default
QSYSOPR
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
*JOB
Range
1 to 65535
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/SNDBRKMSG.json and os/cl/help/SNDBRKMSG.json.