First of all, thanks a lot for the sample code.
It worked perfectly.
But i would like a little more help here.
I would like to know if there is any way i can "Terminate" the jcl execution without abending it ?
for eg., I am planning to terminate the jcl at the end of step 5 here, if i get a return code of 4.
If return code is zero, i shall continue execution of the jcl.
I think using an IF condition might be difficult, because i have to replicate this same logic for nearly a dozen proc steps.. which means i need to have 12 nested-if conditions.
I have presently done this using the COND parameter in the Job statement, but, my quality team has rejected it saying it is not an accepted standard of coding.
Any other ideas, a simple proc or a job step which will terminate the job execution ?