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

cond condition


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

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Fri Oct 23, 2009 11:52 am
Reply with quote

Hi ,

I have query regarding Cond

suppose i have 8 step in my job and my requrement is if step 2 return code is 20 then step 4 will execute ,if step1 return code is 20 then step 5 will execute and if step 3 return code is 20 then step 7 will execute and if previous stepreturn code is 20 then step 8 will execute.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 23, 2009 12:01 pm
Reply with quote

You would be much better off using IF/THEN/ELSE/ENDIF processing.
Back to top
View user's profile Send private message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Fri Oct 23, 2009 12:04 pm
Reply with quote

thanks for your reply

i think there is some ibm utility also for step execution on condition base.
if you aware of that then please provide me some example for that
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 23, 2009 12:36 pm
Reply with quote

As expat has suggested IF/THEN/ELSE/ENDIF would be best way to do so.
or even you can use COND parameter also for the same

I am not aware of any such tool
But I wonder why will IBM or any other company, develop tool for it when you have facility to do it in JCL itself.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Oct 23, 2009 4:08 pm
Reply with quote

"I just dropped in, to see what condition my condition was in"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 23, 2009 7:53 pm
Reply with quote

Yeah, yeah, oh yeeaaahh icon_wink.gif

d
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
Search our Forums:

Back to Top