View previous topic :: View next topic
|
Author |
Message |
antonyrexon
New User
Joined: 30 Aug 2005 Posts: 1
|
|
|
|
How do I use the RESTART parameter to execute a job with 10 steps, of which I need to execute step1 then execute step9, without executing the steps in-between. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
You can use Cond parameter for Step2 to step8 like
COND.STEP01=(0,LE),
Because of the COND parameter, all the 7 steps will be skipped since this condition will alwayz be true
And you can execute only step1 and step9.
Regards
Rupesh |
|
Back to top |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
USE RESTART EXECUTE START STEP AND END EXECUTE ADD ONE LINE // (NULL INDICATOR)
EX:
RESTART=STEPNAME.PROCNAME
// |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
I think that if you want to use the RESTART parameter you will able to run or only one step(using also a COND) or all the step from that specified in RESTART.
The "NULL INDICATOR" stop your job after that statement.
I hope in this help |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Is it possible to start two different step in a job using RESTAT parameter?
As per my understanding we use RESTART parameter to restart the job from particular step and execute all next Step.
Regards
Rupesh |
|
Back to top |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
Its is correct |
|
Back to top |
|
|
michaelraj
New User
Joined: 01 Sep 2005 Posts: 43 Location: Bangalore
|
|
|
|
Hi Antony,
If you want to run the step1 and then step9 , there is no need of Restart. As the first step will be executed automatically, in Step1 code as COND=(0,LE,STEP9), then after executing step1 it will go for step9 to execute it. Then in step10 code as COND=(21,LE), though the return code will be less than 21 only. Here cond code is satisfied so the step will not be executed.
The COND parameter in the EXEC statement : The COND parameter can perform a test before a step begins execution against the return codes issued by previous steps. If a test is satisfied, the step will not be executed.
Till now I think everything is ok as per our assumption. If we want to execute step3 and step9 only then we have to use Restart = step3 in JOB card. Then again code COND=(0,LE,STEP9) in step3 and follow the same.
Regards,
MIKE. |
|
Back to top |
|
|
|