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

Condition codes


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

New User


Joined: 06 Aug 2009
Posts: 21
Location: chennai

PostPosted: Thu Oct 29, 2009 5:14 pm
Reply with quote

Hi,

My job has ten steps. I want to execute the 5th step alone. I tried giving RESTART= STEP5 but starting from 5th all conesquent steps are running.

How can I run the 5th step alone by using condition codes?

Please help me.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Oct 29, 2009 5:16 pm
Reply with quote

Personally, I'd save myself a lot of headaches and just use IEBEDIT.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Thu Oct 29, 2009 5:52 pm
Reply with quote

If your proc steps are, for example, STEP1 thru STEP10, and you only want to execute STEP5, then, as you stated, do a RESTART=STEP5, and, in addition, supply override statements to suppress execution of the remaining steps - for example
//PROCSTEP EXEC PROC=MYPROC,
// COND.STEP6=(32,GE),
// COND.STEP7=(32,GE),
// COND.STEP8=(32,GE),
// COND.STEP9=(32,GE),
// COND.STEP10=(32.,GE)

The above would suppress STEP6 thru STEP10 if the Return Code from ( restarted ) STEP5 was less than or equal to 32, or if STEP5 abended.
Back to top
View user's profile Send private message
PPRASAD2

New User


Joined: 06 Aug 2009
Posts: 21
Location: chennai

PostPosted: Thu Oct 29, 2009 6:00 pm
Reply with quote

Thank you KEVIN and RONALD
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Oct 29, 2009 6:37 pm
Reply with quote

Rather than specifically COND= all of the subsequent steps, especially if there are many of them, why not code COND=(0,LE) on the jobcard.

Once STEP5 has completed and issues a return code, all of the following steps will be bypassed.
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts selectively copy based on condition DFSORT/ICETOOL 3
No new posts RXSUBCOM Return Codes / Documentation CLIST & REXX 6
Search our Forums:

Back to Top