Message queues in break mode

A break-handling program can be called whenever a message of equal or higher severity than the severity code filter arrives on a message queue that is in break delivery mode.

To request a break-handling program, you must specify the name of the program and break delivery on the same Change Message Queue (CHGMSGQ) command. The break handling program must receive the message with the Receive Message (RCVMSG) command so the message is marked as handled and the program is not called again. There is an IBM-supplied break-handling program that you can use by default on the Change Message Queue (CHGMSGQ) command. For example:

CHgMSGQ MSGQ(name) DLVRY(*break)
Note: This program cannot open a display file if the interrupted program is waiting for input data from the device display.
Related tasks
Use break-handling programs