View previous topic :: View next topic
|
Author |
Message |
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Hi,
I have a sample JCL
//P4113A JOB (),,CLASS=1,MSGCLASS=A,NOTIFY=&SYSUID
//STEP10 EXEC PGM=IEFBR14
//DD01 DD DSN=ECNS.TEST.REPORT,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//STEP20 EXEC PGM=IEFBR14
//DD01 DD DSN=ECNS.TEST.REPORT1,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
My requirement here is that if step20 should run even when the step1 fails with JCL error.
can some one suggest me what needs to be done for this?
Regards,
Ashok |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Without access to a mainframe, I would guess that a JCL error would prevent ALL steps to be flushed. Can you test it? |
|
Back to top |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Yes Terry you are right, but i would like to know how to get the steps following the JCL error to run instead of being flushed out |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
I should have said that the steps don't really flush. A JCL error will cause the job to NOT run at all. |
|
Back to top |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
so is there a way by which we can ignore the jcl error in step10 and continue to run step20? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
looks like You are not listening,
a jcl error will prevent a job from running |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
In other words, "No". |
|
Back to top |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Thanks |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
A JCL Syntax error will prevent the job from running.
A JCL error such as Dataset not found will terminate the job.
Even in this case there is no way to have subsequent steps run. |
|
Back to top |
|
|
|