View previous topic :: View next topic |
Author |
Message |
starbeni Beginner
Joined: 16 Oct 2005 Posts: 1 Topics: 1 Location: Chennai
|
Posted: Sun Oct 16, 2005 3:14 am Post subject: PROC STEP EXECUTION BASED ON MULTIPLE COND CODES. |
|
|
Hai,
Condider the following scenario...
I have three steps in a PROC
STEP1
STEP2
STEP3
I want to execute the STEP3 if any of the previous step's RETURN CODE is more than ZERO i.e.,
EXECUTE STEP3 IF STEP1.RC >0 OR STEP2.RC >0
Shall anyone tell me how to achieve this?
Thanks. _________________ Benington Prabhu W.S.
Chennai
India |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sun Oct 16, 2005 10:32 am Post subject: Re: PROC STEP EXECUTION BASED ON MULTIPLE COND CODES. |
|
|
starbeni wrote: |
Shall anyone tell me how to achieve this?
|
I think you pretty much had it:
Code: |
//STEP1 EXEC PGM=X
//*
//STEP2 EXEC PGM=Y
//*
// IF (STEP1.RC > 0 | STEP2.RC > 0) THEN
//STEP3 EXEC PGM=Z
// ENDIF
|
|
|
Back to top |
|
|
|
|