How to determine the relevant MONMSG

How to determine the relevant MONMSG to be used with out knowing the exact MONMSG id to be used.
Ex: If CHKOBJ command line is there in a CLP, below that we dont know what the monmsg id CPFXXXX to be used, in that case how you find out the exact ID to be used by using the program logic?

Answer Wiki

GO online to the IBM website that has manuals.
Then find the CL manuals and look up the command you want to monitor.
A list will be provided for you.

==============================================

The <help> for each (IBM) command includes a list of all of the message identifiers that the command might send. Scroll to the bottom of the <help>. Determine which of those you want to monitor for at that moment. If a message ID is sent that you choose not to monitor for, the program’s global error handler will be invoked. If a global MONMSG is not present or does not include the message ID that was sent, then any system default handler will be invoked.

Ranges of message IDs can be monitored: CPF9800 will catch CPF9801, CPF9802, CPF9803, up through CPF98FF; and CPF0000 would catch CPF0001 up through CPFFFFF. That is, by specifying trailing zeros, you are asking for the range of values that can fit within the trailing zero positions.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 4 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

If the command is allowed to run interactively, run it in such a way that an error will be genrerated, then inspect your job log. For example, CHKOBJ OBJ(XXXXXXXXXX) OBJTYPE(*FILE) will display this error: "Object XXXXXXXXXX in library *LIBL not found." Move your cursor to the error message and press F1 to see the message ID which is CPF9801 in this case. Remember that you can not monitor for completion or diagnostic messages.
By the way, to see all the error messages a command can generate, enter the command and press F4, then move your cursor to the top of the display and press F1. This displays all the help text for the command. This will reveal the error messages mentioned in other posts.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy