Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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 What will happen if we dont code STOP... Poha Eater COBOL Programming 4 Mon Jun 04, 2018 5:27 pm
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts RESP2 code -502 pshongal CICS 6 Mon May 28, 2018 10:58 am
No new posts Code Coverage and static analysis too... Aditya.Srivastava PL/I & Assembler 2 Fri May 25, 2018 12:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us