denis.dhimitri wrote:I've to build a JCL which has to execute the second STEP for n-times where n = number of OUTPUT files of the first STEP that creates them dynamically. How can I do something like this ? I mean how can I loop in the second STEP of my JCL ?
Like CG said, not within the same job.
You could use REXX, COBOL or Sort to create the JCL for the following variable job.
You may be remembering cases where one sort/tool step created input data for a second step, but I've never seen JCL created for a second step.