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.
| 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:
|
| 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 |
related tasks
Customizing compiler-message severities
related references
Parameter list for exit modules