View previous topic :: View next topic |
Author |
Message |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Mon Feb 14, 2005 10:25 pm Post subject: Help in return code from PROC |
|
|
Dear Friends,
Please help me in the following case.
I have a JCL of this Format :-
Step1 Exec PGM=A
Step2 EXEC PROC1,AA=4,BB=5,COND=(0,GT,STEP1)
Step3 Exec PGM=A
Here in Step3 I need to check the Return code from Step2 which is a PROC. I need to check like this :-
Step3 Exec PGM=A,COND=(0,GT,Step3)
I cannot use a If/Else/EndIF.
Is there any way to check the retuen code from the Step In proc. My this PROC1 has only One Step.
Please help.
Thanks,
Karun |
|
Back to top |
|
 |
dtf Beginner
Joined: 10 Dec 2004 Posts: 110 Topics: 8 Location: Colorado USA
|
Posted: Mon Feb 14, 2005 10:58 pm Post subject: |
|
|
Very strange questions you are asking........ Yes this can be done (if I understand what you are asking)
I believe as a hint I would say that your COND statement would reference both the STEP NAME and the PROC STEP NAME.
I would also note that COND code checking is probably the LEAST straight forward parameters in the JCL language. This is perhaps why the IF/ELSE/ENDIF was introduced/
________
Mazda Premacy and Mazda5
Last edited by dtf on Tue Feb 01, 2011 1:46 pm; edited 1 time in total |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Tue Feb 15, 2005 10:34 am Post subject: Thanks, |
|
|
Hi Kolsu,
Thanks for the tip.
Karun |
|
Back to top |
|
 |
|
|