View previous topic :: View next topic
|
Author |
Message |
mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
Hi,
I have 10 steps in a Job.
Requirement is
1) Every Odd step should execute irrespective of the return code from any of the previous steps.
i.e. STEP1, STEP3, STEP5, STEP7, STEP9
2) Every Even step should execute only if its preceeding step executes successfully. (Return code = 0)
i.e. STEP2 should run only if STEP1 executes successfully.
STEP4 should run only if STEP3 executes successfully.
STEP6 should run only if STEP5 executes successfully.
STEP8 should run only if STEP7 executes successfully.
STEP10 should run only if STE9 executes successfully.
Please help me in writing the COND parameters at each step. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not use the IF/THEN/ELSE??
much simpler to use and understand! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
1. IEBEDIT should suffice, please serach the Forum on "IEBEDIT".
2. Please tell us what you've tried? |
|
Back to top |
|
|
mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
Hi enrico-sorichetti
I know writing using IF/THEN.
Pls advice, how to write the code using COND parameter. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
mkk157 wrote: |
Hi enrico-sorichetti
I know writing using IF/THEN.
Pls advice, how to write the code using COND parameter. |
Why are you using this inferior method? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
While reviewing the reference material Enrico provided, keep in mind that steps that should always run need no COND=. The steps that depend on the prior step need to mention that step in the COND=. . . |
|
Back to top |
|
|
|