View previous topic :: View next topic
|
Author |
Message |
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
I have a 2 jobs job A and job B.both are calling
same proc.but in job A i want to execute all the
steps but job B i want to by pass the 3rd step.how? |
|
Back to top |
|
|
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
You can achieve this by using conditional codes of previous step.
Job A : step10 : explicitly set some return code in this step say rc = 4/8/12..
.........
.........
step50 proc a
procstep20...Execute only if rc(step10) is 4.... |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
in the job B give COND.STEP03=(0,LE).
THIS WILL BYPASS ONLY STEP03 IN JOB B |
|
Back to top |
|
|
shannu
New User
Joined: 01 Jun 2005 Posts: 17 Location: bangalore
|
|
|
|
Hi,
I think after this to execute 4th step you need to specify..
In the job b cond.step04=even.
This will execute step 4 even if the previous step normally or abnormally terminates.
Thanks,
Shannu. |
|
Back to top |
|
|
sree_2503
New User
Joined: 22 May 2005 Posts: 12 Location: Chennai,India
|
|
|
|
Hi Shannu,
I dont think to execute 4th step after u bypass the 3rd step, u need to specify the cond=even param. |
|
Back to top |
|
|
Sangram
New User
Joined: 08 Jun 2005 Posts: 7
|
|
|
|
Sree is right. No need for cond=even for the fourth step. It will be executed once step 3 is skipped. |
|
Back to top |
|
|
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
Thanks lot for all your quick reply.
Bye
Sonasheetal. |
|
Back to top |
|
|
lostprophet
New User
Joined: 14 Jan 2007 Posts: 2 Location: india
|
|
|
|
I have 15 job steps, i want to execute only step 11 and step 12. Now my
query is i can execute steps 11 and 12 by using step Restart but how can
i stop executing beyond step 12, i.e i dont want execution beyond step 12. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
To keep the steps that follow step12 from executing, use a COND override for each step that is (0,LE).
This will prevent each overridden step from executing. Zero is less than or equal to every possible condition code, so specifying (0,LE) will ensure that the step does not execute.
Sonasheetal,
From your original thread -
To do what you want, you can use this technique also. Run job A as usual. When you run job B, override the the step(s) you want to bypass with the (0,LE) condition code test. |
|
Back to top |
|
|
lostprophet
New User
Joined: 14 Jan 2007 Posts: 2 Location: india
|
|
|
|
dick scherrer wrote: |
Hello,
To keep the steps that follow step12 from executing, use a COND override for each step that is (0,LE).
This will prevent each overridden step from executing. Zero is less than or equal to every possible condition code, so specifying (0,LE) will ensure that the step does not execute.
Thank you dick scherrer for ur quick reply
is there any other method to achieve this apart from using COND(0,LE)
Lostprophet
Sonasheetal,
From your original thread -
To do what you want, you can use this technique also. Run job A as usual. When you run job B, override the the step(s) you want to bypass with the (0,LE) condition code test. |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi LP,
Other than the condition code, what would you prefer?
Checking condition code(s) is the normal method used to control whether a step is executed or bypassed. |
|
Back to top |
|
|
a69356
New User
Joined: 01 Dec 2006 Posts: 21 Location: Gurgaon
|
|
|
|
I think Cond parameter is (0,GT) instead of (0,LE) . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
They both work perfectly. Same result different method. |
|
Back to top |
|
|
jonnavarapu786
New User
Joined: 28 Mar 2007 Posts: 2 Location: noida
|
|
|
|
Answer for the below ? was....
Just insert a null card after the 12th step. i.e just give a //.
it will solve ur problem, I think no need to think that much offffffff....
I have 15 job steps, i want to execute only step 11 and step 12. Now my query is i can execute steps 11 and 12 by using step Restart but how can i stop executing beyond step 12, i.e i dont want execution beyond step 12. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Use condition code test suggested above.
When you specify the restart, you can also override the condition code testing for the steps you do not want to run. |
|
Back to top |
|
|
|