View previous topic :: View next topic
|
Author |
Message |
IndianBlues
New User
Joined: 23 May 2006 Posts: 6 Location: Cincinnati
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
IndianBlues
New User
Joined: 23 May 2006 Posts: 6 Location: Cincinnati
|
|
|
|
Douglas and Kevin,
Thanks for your help.
COND=((0,LT,JS010FTP),(1,EQ,JS070EZT.EASYPLUS)) worked for me. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
IF/THEN/ELSE on the Jobcard? I didn't know that was possible. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Question was for a job step, not job card. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Oh, my bad. I totally mis-read the topic.
(These daily 16-hour workdays will start to make you loopy after a while). |
|
Back to top |
|
|
|