Hi,
I want to run a step called STEPLST only when the return codes produced by the previous steps don't fall in 0, 98 & 99...
Tricky part is that this step will be added to many jobs at the end of their steps so I don't know how many steps are present in each job.
Due to this I can't use STEPNAME.RC in the IF statement of this JCL to conditionally execute the step as every job may has different number of steps.
Could anyone suggest if there is anyway where we can check the Return Codes produced by all the steps present in the job?
For example, If job A has 5 steps and B has 7 steps the condition should check return codes of all 5 steps in job A and 7 steps in Job B