Message exit

The binder passes control to your message user exit routine just prior to writing a message to the print data set (typically SYSPRINT). The message is stored in a buffer and passed to your routine. The exit routine can either prevent or allow the message to print.

When specifying this exit on STARTD, you provide the following information by means of the EXITS keyword:
The binder passes a parameter list to the exit routine. Register one contains the address of a list of addresses pointing to the following data:

The exit routine can examine the messages but should not modify them. Before returning to the binder, your exit routine should set a return code for the binder to control its next action as follows:

Return Code Explanation
00 Continue processing as if the exit routine had not been called.
04 Suppress printing of the message.