IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL with jclerror


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Wed Aug 05, 2009 12:51 am
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Aug 05, 2009 12:55 am
Reply with quote

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
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Wed Aug 05, 2009 12:57 am
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Aug 05, 2009 12:59 am
Reply with quote

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
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Wed Aug 05, 2009 1:00 am
Reply with quote

so is there a way by which we can ignore the jcl error in step10 and continue to run step20?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Aug 05, 2009 1:01 am
Reply with quote

looks like You are not listening,
a jcl error will prevent a job from running
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Aug 05, 2009 1:05 am
Reply with quote

In other words, "No". icon_smile.gif
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Wed Aug 05, 2009 1:12 am
Reply with quote

Thanks
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Aug 05, 2009 2:34 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Search our Forums:

Back to Top