View previous topic :: View next topic
|
Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
Hi,
I have 5 steps in my JCL, i want to omit the execution of 3rd step and i am not sure what would be the return code from step2, then what do i need to do in such case?
Thanks. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
COND=(0,LE) |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Meenakshi,
Quote: |
I am not sure what would be the return code from step2 |
What are the conditions when u want to execute Step3 and not execute Step3 ? |
|
Back to top |
|
|
Prasun De
New User
Joined: 17 Jan 2008 Posts: 28 Location: Kolkata, INDIA
|
|
|
|
give a COND checking which will always be true in step 3 and the step will get bypassed. You can also use COND=ONLY
Code: |
//STEP1 EXEC PGM=IEFBR14
//STEP2 EXEC PGM=IEFBR14
//STEP3 EXEC PGM=IEFBR14,COND=(0,LE)
//STEP4 EXEC PGM=IEFBR14
//STEP5 EXEC PGM=IEFBR14 |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Prasun De wrote: |
You can also use COND=ONLY |
If STEP2 abends what will happen to STEP3 |
|
Back to top |
|
|
|