View previous topic :: View next topic
|
Author |
Message |
PPRASAD2
New User
Joined: 06 Aug 2009 Posts: 21 Location: chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Personally, I'd save myself a lot of headaches and just use IEBEDIT. |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
|
PPRASAD2
New User
Joined: 06 Aug 2009 Posts: 21 Location: chennai
|
|
|
|
Thank you KEVIN and RONALD |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|