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

Execute the 2nd step provided the Ist step runs successfully


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ruby.sen
Currently Banned

New User


Joined: 04 Feb 2006
Posts: 6

PostPosted: Sat Feb 04, 2006 9:25 pm
Reply with quote

Through JCL if I want to execute the 2nd step provided the Ist step runs successfully, what are the ways I can approach
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Sat Feb 04, 2006 9:42 pm
Reply with quote

u can control it using cond parameter

ex. if u want to execute step2 on successfull exec. of step01.(RC=0)

//step02 exec pgm=xyz,cond=(0,NE)
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Mon Feb 06, 2006 1:09 am
Reply with quote

i recommend using IF THEN. it does basically the same as COND, but it?s more readable

IF stepnamestep1.RC = 0 THEN

STEP2....


ENDIF
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

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top