Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL with jclerror

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: bangalore

PostPosted: Wed Aug 05, 2009 12:51 am    Post subject: JCL with jclerror
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    Post subject:
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: bangalore

PostPosted: Wed Aug 05, 2009 12:57 am    Post subject:
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    Post subject:
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: bangalore

PostPosted: Wed Aug 05, 2009 1:00 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Wed Aug 05, 2009 1:01 am    Post subject: Reply to: JCL with jclerror
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    Post subject:
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: bangalore

PostPosted: Wed Aug 05, 2009 1:12 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us