How to trap the errors with out using monmsg?

25 pts.
Tags:
AS/400 error messages
CL Errors
CL Program
MONMSG
Is it possible to trap the errors in CL with out using MONMSG.let me explain?

Software/Hardware used:
as400

Answer Wiki

Thanks. We'll let you know when a new response is added.

Can you explain why you would want to do this.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Nagraj322
    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 pointsBadges:
    report
  • philpl1jb
    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
    49,590 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following