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?
Software/Hardware used:
Iseries
ASKED:
December 2, 2009 9:29 AM
UPDATED:
December 4, 2009 5:14 PM
No, I’m asking to how to obtain it with out browsing net, only through CLP program.
You could just use the command prompt. F1 to show help, page down and all CPF messages possible are given to you.
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.
Pace Yorkshireman, if you use F1 on the prompted command, you’ll need to use F2=Extended help once the Help window is displayed then scroll to the bottom to get the list of messages.