Processing of MSGEXIT

The MSGEXIT module is used to customize compiler diagnostic messages and FIPS messages. The module can customize a message either by changing its severity or suppressing it.

If the MSGEXIT module assigns a severity to a FIPS message, the message is converted into a diagnostic message. (The message is shown in the summary of diagnostic messages in the listing.)

A MSGEXIT summary at the end of the compiler listing shows how many messages were changed in severity and how many messages were suppressed.

Table 1. MSGEXIT processing
Action by compiler Action by exit module
Loads the exit module (mod5) during initialization  
Calls the exit module with an OPEN operation code (op code) Optionally processes str5 and passes the status of the OPEN request to the compiler
Calls the exit module with a MSGSEV operation code (op code) when the compiler is about to issue a diagnostic message or FIPS message One of the following actions:
  • Indicates no customization of the message (by setting return code to 0)
  • Specifies a new severity for (or suppression of) the message, and sets return code to 4
  • Indicates that the operation failed (by setting return code to 12)
Calls the exit module with a CLOSE op code Optionally frees storage and passes the status of the CLOSE request to the compiler
Deletes the exit module (mod5) during compiler termination  

Example: MSGEXIT user exit

related references  
Parameter list for exit modules