|
|
| Author |
Message |
Mariraj
New User
Joined: 09 Jul 2007 Posts: 15 Location: Chennai
|
|
|
|
I have 10 steps in my job STEP1, STEP2 ... STEP10.
I want STEP10 to be executed only when STEP3 or STEP4 or STEP5 or STEP6 or STEP7 abends.
Please let me know how this can be achieved. |
|
| Back to top |
|
 |
References
|
Posted: Wed Apr 30, 2008 10:03 am Post subject: Re: To Execute a step only when few steps in the job abends |
 |
|
|
 |
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 171 Location: Bangalore
|
|
|
|
| use COND=(ONLY) for that step which you want to execute iff the above mentioned steps are abended. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2557 Location: Brussels once more ...
|
|
|
|
| And if STEP8 abends ??? |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6944 Location: 221 B Baker St
|
|
|
|
Hello,
Do you really mean "abended" or do you mean some undesirable condition code has been set?
If you explain what the "watched" steps (i.e. steps 3, 4, 5, 6. 7) acccomplish and what you want step10 to do when an abend occurs in one of the "watched" steps, we can possibly offer more useful suggestions. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 353
|
|
|
|
Hi,
assuming you do mean abend then this should work
| Code: |
//CHECK01 IF (ST03.ABEND = TRUE)
// OR (ST04.ABEND = TRUE)
// OR (ST05.ABEND = TRUE)
// OR (ST06.ABEND = TRUE)
// OR (ST07.ABEND = TRUE) THEN
//*
//ST10 EXEC PGM=IEFBR14
//*
//CHECK01 ENDIF
|
Gerry |
|
| Back to top |
|
 |
Mariraj
New User
Joined: 09 Jul 2007 Posts: 15 Location: Chennai
|
|
|
|
I too used this only.
Is there any limit to the number of conditions that can be checked in a IF statement. |
|
| Back to top |
|
 |
|
|