25 pts.
 How to trap the errors with out using monmsg?
Is it possible to trap the errors in CL with out using MONMSG.let me explain?

Software/Hardware used:
as400
ASKED: June 14, 2011  7:07 AM
UPDATED: June 17, 2011  1:25 AM

Answer Wiki:
Can you explain why you would want to do this.
Last Wiki Answer Submitted:  June 14, 2011  1:30 pm  by  CharlieBrowne   32,855 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,855 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

Tom

 108,065 pts.

 

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..
thank you

 25 pts.

 

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.
Phil

 44,180 pts.

 

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.

Tom

 108,065 pts.