Yes, an explanation might be helpful.
I suppose you could get more complicated and set up condition handlers with the Register a User-Written Condition Handler (CEEHDLR) API if you’re on V5R4 or later. But then I’d wonder why CL was being used.
I just want to know wether it is possible or not? Present i don’t have any queries.i have a doubt in my mind.iam new to as400.so plz..You can explain what are the ways..
There are two ways to use MONMSG ..
Global monitors are issued prior to the first command and affects every command that isn’t monitored for that message.
Command monitoring is placed immediately after the command and can be for specific messages or categories of messages.
Your program can read the job messages and use these to determine issues.
iam new to as400.
Generally, there is no reason to monitor for errors in CL with anything but MONMSG.
If an error occurs that can be monitored, you will have to use MONMSG just to keep the CL program active in order to read joblog messages or do other actions in that CL program.
MONMSG is specifically intended for this purpose. Any alternative methods require much more advanced skills. It will be unlikely that you will find a CL programmer who doesn’t use MONMSG.