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

Code Multiple COND parameters on Job Step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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

Global Moderator


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

PostPosted: Sat Aug 01, 2009 12:58 am
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
Reply with quote

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

Global Moderator


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

PostPosted: Sat Aug 01, 2009 1:06 am
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 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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top