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
ARF for job failed with non-zero CC
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: ARF
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.
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.
Hope this helps,
d.sch.
d.sch.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: ARF
You're welcome-good luck
d

d
Re: ARF for job failed with non-zero CC
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
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
-
- Similar Topics
- Replies
- Views
- Last post
-
-
PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
by futohomok » Wed Nov 27, 2024 9:53 pm » in VSAM/SMS - 7
- 2566
-
by futohomok
View the latest post
Mon Dec 02, 2024 4:33 pm
-