MONMSG

bigfoot53

bigfoot53

Active Member
Hello,
I am having an issue with out=r nightly failing for various reaons when this happens all the other jobs are not procssec until someone ends the backup which causes issues i would like to use MONMSG to automaticly end the job if it has an error using this code
PGM

MONMSG MSGID (CPA4054) EXEC (GOTO EXIT)

EXIT: ENDPGM

will this work and how do i add it to the bsckup job .

thanks
Bruce
 
Two ways to monitor:

to do a global CPF error intercept, add this line as the first line of
code after the DCL lines in your CL program.

MONMSG MSGID(CPF0000 CPC0000 CPD0000 CPA000) EXEC(GOTO
CMDLBL(ABEND))



If you DON't want the above statement to monitor ALL lines of code in
your CL program, use this line of code AFTER each executable line that
you want to monitor:

MONMSG MSGID(CPF0000 CPC0000 CPD0000 CPA000) EXEC(GOTO
CMDLBL(ABEND))
 
Re: RE: MONMSG

OK,
Looks good but how do i get into the CL program and make the changes?

thanks
Bruce
 
Bruce, call me at 918-879-6036 between 7:30AM to 5:00PM central time
and I will talk you through the steps.

EricL



Eric
 
Back
Top