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 Profile Log in to check your private messages Log in
 
Code Multiple COND parameters on Job Step

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

New User


Joined: 23 May 2006
Posts: 6
Location: Cincinnati

PostPosted: Fri Jul 31, 2009 9:23 pm    Post subject: Code Multiple COND parameters on Job Step
Reply with quote

Can I code multiple COND parameters on one job step?

Example:
//JS080ZEK EXEC PGM=ZEKESET,COND=(0,LT,JS010FTP),
// COND=(1,EQ,JS070EZT.EASYPLUS)
Back to top
View user's profile Send private message

Douglas Wilder

Active User


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

PostPosted: Fri Jul 31, 2009 9:29 pm    Post subject:
Reply with quote

No you can only code 1 COND per EXEC statement.
Try COND=((0,LT,JS010FTP),(1,EQ,JS070EZT.EASYPLUS)) or better yet switch to using IF statements.
Back to top
View user's profile Send private message
IndianBlues

New User


Joined: 23 May 2006
Posts: 6
Location: Cincinnati

PostPosted: Sat Aug 01, 2009 12:00 am    Post subject:
Reply with quote

Douglas and Kevin,

Thanks for your help.
COND=((0,LT,JS010FTP),(1,EQ,JS070EZT.EASYPLUS)) worked for me.
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: Sat Aug 01, 2009 12:53 am    Post subject:
Reply with quote

It may work for you, but your successor will probably wish you had opted to use the easier to understand IF/THEN/ELSE/ENDIF construct.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Aug 01, 2009 12:58 am    Post subject: Reply to: Code Multiple COND parameters on Job Step
Reply with quote

IF/THEN/ELSE on the Jobcard? I didn't know that was possible.
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: Sat Aug 01, 2009 1:02 am    Post subject:
Reply with quote

Question was for a job step, not job card.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Aug 01, 2009 1:06 am    Post subject: Reply to: Code Multiple COND parameters on Job Step
Reply with quote

Oh, my bad. I totally mis-read the topic. icon_redface.gif

(These daily 16-hour workdays will start to make you loopy after a while).
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
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

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