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

To omit execution of a step in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Mon Sep 06, 2010 2:24 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Sep 06, 2010 2:28 pm
Reply with quote

COND=(0,LE)
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Mon Sep 06, 2010 2:32 pm
Reply with quote

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
View user's profile Send private message
Prasun De

New User


Joined: 17 Jan 2008
Posts: 28
Location: Kolkata, INDIA

PostPosted: Mon Sep 06, 2010 2:33 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Sep 06, 2010 2:45 pm
Reply with quote

Prasun De wrote:
You can also use COND=ONLY
If STEP2 abends what will happen to STEP3
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
Search our Forums:

Back to Top