View previous topic :: View next topic
|
Author |
Message |
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi,
I need to perform cretain sequence of JCL steps until certain condition code is received. Is there a way out?
Thanks,
Siva. |
|
Back to top |
|
|
kavi
New User
Joined: 03 Mar 2005 Posts: 2
|
|
|
|
You can use
// IF <stepname>.RC = 0 THEN
//STEP1 EXEC PGM=XXX
// ELSE
//STEP2 EXEC PG=YYY
// END-IF
// |
|
Back to top |
|
|
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi Kavi,
I am not looking for IF ....ELSE way, since I need to loop may JCL steps until the certain RC condition is met. Looking for something like PERFORM UNTIL or DO WHILE, to enclose a sequence of steps together that need be executed in that loop.
Any Ideas?
Thanks, |
|
Back to top |
|
|
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi,
Can somebody, please, advise on this one? If there is no solution within JCL, then I will try to use REXX to create dynamic JCL to solve this problem.
Thanks, |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
Back to top |
|
|
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi Prandip,
Thanks for your reply.
Hi Moderator,
Please mark this as SOLVED.
Regards, |
|
Back to top |
|
|
|