Monmsg

130 pts.
Tags:
MONMSG
PGM
Hi, Whats the purpose of differenciate the monmsg in two types...? I mean if we trap the error at pgm level then why I use command level monmsg? is there any difference?

Answer Wiki

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

Two Types??
I believe you have mentioned only about one type. i.e., using MONMSG only.

MONMSG Command is used for error handling.
As you mentioned, In Writing the CL Program it self, We are handling the possible error scenarios using MONMSG command.

If you are not talking about using MONMSG in CL Program(as you mentioned Command level MONMSG), Give us the scenario.

Pradeep.

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
  • pdsathishkumar
    command level message for specific message to occur during the execution of single command, here you specific that error id if you know that... CPF0000 & CPF9999, it will trap all errors in the program. A program-level MONMSG is placed after declaration statements.
    3,790 pointsBadges:
    report
  • wpoulin
    You are not limited to CPF0000 & CPF9999 at the program level. You can monitor for any message at the program level. Hope this helps, Bill Poulin
    2,480 pointsBadges:
    report
  • Builtin
    Whats the purpose of differenciate the monmsg in two types...? I mean if we trap the error at pgm level then why I use command level monmsg? is there any difference? There are two Types of MONMSG, Program level and Command level. If you are using Program level MONMSG than you can trap error and Handle it, Here you can use GOTO Statement only. Where as if you want to perform some action or use any command at the time of error than you use command level MONMSG. That is the difference.
    100 pointsBadges:
    report
  • SMisar
    Thanks Builtin
    130 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