|
|
| Author |
Message |
kaleelahamed
New User
Joined: 08 Jun 2006 Posts: 44 Location: Chennai
|
|
|
|
Hi,
Anyone please help me to resolve this.
I have three STEPS in my JCL.
If the STEP1 RC is 0, then the STEP2 and STEP3 should be bypassed.
If the STEP1 REC is 16, then we have to execute STEP2 and STEP3.
I have used the following COND in my STEP2.
STEP2 EXEC DPBOPSSD,COND=(0,GT)
(if the return code from STEP1 is 0, the system bypasses STEP2. If the return code is greater than 0, the system executes STEP2.) But the JCL is working fine for RC 0, but when I get RC 16, Its not executing STEP2. Can anyone please suggest what condition code I have to use in STEP2 and in STEP3?
Note - I have tried almost all the options to solve my request. But still I am not getting the expected result. |
|
| Back to top |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3383 Location: Charlotte,NC USA
|
|
|
|
// IF (STEP1.RC = 16) THEN
//STEP2 EXEC DPBOPSSD
//*
//STEP3 EXEC ...
// ENDIF |
|
| Back to top |
|
 |
hchinnam
Active User
Joined: 18 Oct 2006 Posts: 68
|
|
|
|
| kaleelahamed wrote: |
Hi,
If the STEP1 RC is 0, then the STEP2 and STEP3 should be bypassed.
If the STEP1 REC is 16, then we have to execute STEP2 and STEP3.
|
What about the other return codes?
assuming you have to bypass the step when RC is zero and execute it when RC is other then zero (that includes 16 anyway) your cond can be COND=(0,EQ).
| Quote: |
have used the following COND in my STEP2.
STEP2 EXEC DPBOPSSD,COND=(0,GT)
(if the return code from STEP1 is 0, the system bypasses STEP2. If the return code is greater than 0, the system executes STEP2.) But the JCL is working fine for RC 0
|
ZERO GT 16 is false. So when your STEP1 RC is 16, this step will execute when your RC is 16. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 697
|
|
|
|
Hi,
if you are not going to use the IF statement as suggested by Kevin, you can code the following :-
Gerry |
|
| Back to top |
|
 |
|
|
|