Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Send Break Message (SNDBRKMSG) command is used to send an immediate message to one or more work station message queues. An immediate message is a message that is not predefined and is not stored in a message file. The command causes the message to be delivered always in break mode. The DSPMSG display is shown for the message when it is received, regardless of the setting of the message queue's delivery mode, severity, and break handling program. However, the message may not be displayed in some cases, depending on the BRKMSG job attribute. This command is primarily intended for the system operator's use.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
MSG | Message text | Character value | Required, Positional 1 |
TOMSGQ | To work station message queue | Single values: *ALLWS Other values (up to 50 repetitions): Qualified object name |
Required, Positional 2 |
Qualifier 1: To work station message queue | Name | ||
Qualifier 2: Library | Name, *LIBL | ||
MSGTYPE | Message type | *INFO, *INQ | Optional, Positional 3 |
RPYMSGQ | Message queue to get reply | Qualified object name | Optional |
Qualifier 1: Message queue to get reply | Name, QSYSOPR | ||
Qualifier 2: Library | Name, *LIBL | ||
CCSID | Coded character set ID | 1-65535, *HEX, *JOB | Optional |
Top |
Specifies the immediate message that is being sent. The text must be enclosed in apostrophes if it contains blanks or other special characters. A maximum of 512 characters can be specified.
Coded Character Set Identifier (CCSID) Considerations
The text supplied for the MSG parameter is assumed to be in the CCSID of the job running this command unless a coded character set identifier is supplied for the CCSID parameter. For more information about the message handler and its use of CCSIDs, see the Globalization topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
This is a required parameter.
Top |
Specifies one or more work station message queues to which the break message is sent. Only the names of work station message queues can be specified and only *LIBL or QSYS can be specified for the library value.
Single values
Qualifier 1: To work station message queue
Qualifier 2: Library
Top |
Specifies the type of message that is sent in break mode. Only informational or inquiry message types can be specified. Inquiry messages may require a response.
Top |
Specifies, only if an inquiry message is sent, the message queue that the work station user's reply is sent to.
Qualifier 1: Message queue to get reply
Qualifier 2: Library
Top |
Specifies the coded character set identifier (CCSID) that the specified message text is in. The text supplied by the MSG parameter is assumed to be in the CCSID supplied by this parameter. For more information about the message handler and its use of CCSIDs, see the Globalization topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Top |
Example 1: Sending a Message
SNDBRKMSG MSG('Inventory application shuts down at 4:00 PM.')
This command sends the message 'The inventory application shuts down at 4:00 pm today.' to all work station message queues. If the work station is signed on, the message will be delivered in break mode regardless of the delivery attribute setting of those message queues. The message is also added to the work station message queues of those work stations that are not signed on.
Example 2: Sending an Immediate Message
SNDBRKMSG MSG('Your printed output is ready.') TOMSGQ(GEORGEMSGQ)
This example shows a typical use of the SNDBRKMSG command by the system operator to send an immediate message to a work station user.
Top |
*ESCAPE Messages
Top |