Break Handling Exit Program


  Required Parameter Group:

1 Message queue name Input Char(10)
2 Message queue library name Input Char(10)
3 Message key Input Char(4)

The Break Handling exit program provides the capability of handling messages that arrive at a message queue that is in *BREAK mode. A break handling program is defined to the system by specifying both break delivery and the name of the program on the same Change Message Queue (CHGMSGQ) command. A break handling program should remove the message after it is handled. Additional information and an example are provided in the CL Programming topic.


Authorities and Locks

None.


Required Parameter Group

Message queue name
INPUT; CHAR(10)

The name of the message queue to which the message was sent. The message queue name is a 10-character field that is left-justified and padded with blanks to the right, if necessary.

Message queue library name
INPUT; CHAR(10)

The name of the library that contains the message queue. The library name is a 10-character field that is left-justified and padded with blanks to the right, if necessary.

Message key
INPUT; CHAR(4)

The message reference key of the message that was sent.


Usage Notes

This exit program could be called from an exit point within a multithreaded job and should be written to be threadsafe.



Exit program introduced: V3R6
Top | Message Handling APIs | APIs by category