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
 

 

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: 4648
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: 4648
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am


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