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
 

 

cond condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: cond condition
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 23, 2009 12:01 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Oct 23, 2009 7:53 pm    Post subject: Reply to: cond condition
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


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