Page 1 of 1

ARF for job failed with non-zero CC

PostPosted: Fri Feb 19, 2010 10:26 pm
by regina
Hi,

I need to create an ARF for job failed with non-zero CC, S0C1 or S0C4; another job (RSEMAIL1) must be demanded right away.
Below is how I coded ARF for for non-zero cond code, it works.
What should be added for S0C1, S0C4?

Thank you for your help


JC, SC TST: STEP EQ * PROC EQ * PGM EQ *
CC/ABENDS : CC NE 0000 /_ USR EQ 0000__ CC NE 0000 __
??? GE 000 __ ??? GE 000__ ??? GE 000
EC, EE, IS, LB, LE, LS TST:
RO: DATE: TIME: AO: I
RESPONSES:
1: AC,M=DEMAND,JOB=RSEMAIL1

Re: ARF

PostPosted: Sat Feb 20, 2010 12:16 am
by dick scherrer
Hello,

You might add a new step to the job that specifies COND=ONLY.

This new step would submit the RSEMAIL1 job thru the internal reader. I suspect that an 0c7 or b37 or whatever should also cause the email job to execute.

Re: ARF

PostPosted: Sat Feb 20, 2010 1:27 am
by regina
THANK YOU!

Re: ARF

PostPosted: Sat Feb 20, 2010 1:57 am
by dick scherrer
You're welcome-good luck :)

d

Re: ARF for job failed with non-zero CC

PostPosted: Mon Feb 22, 2010 10:50 pm
by regina
Despite of good sugestion to add a new step to the job that specifies COND=ONLY,
I would like to share for those who prefers not to mess up with user's production JCL or not authorized to change it.
For them using an ARF is the best option.

The following works for both CC and System Code failure

JC, SC TST: STEP EQ * PROC EQ * PGM EQ *
CC/ABENDS : CC NE 0000 /_ CC NE 0000 /_ CC NE 0000 /_
SYS NE 000 /_ SYS GE 000 /_ SYS NE 000
EC, EE, IS, LB, LE, LS TST:
RO: DATE: TIME: AO: I
RESPONSES:
1: AC,M=DEMAND,JOB=RSEMAIL1