1. Expand a composite account to obtain x number of sub-accounts, say 99 sub-accounts (I have the step for this)
2. For each of these sub-accounts, run a JCL that will...
a. Generate an FSR report (steps for this are provided by a third-party)
b. Convert this FSR report into PDF format (I have the step for this)
c. FTP or NDM this report to a file server, with sub-account number added to file name to ensure it is not over-written (I have the step for this)
I need help with the text in red above.
So essentially, what I need to know is how do I submit a job (or maybe even a bunch of steps within a job) 'x' number of times where 'x' is a number that is derived from a previous step?
we really do not care about the content of <stage 2> jobs
the easiest way will be
for step 1 ==> generate a PS dataset with all the parameters needed to run the needed jobs
add a step 2 to
run a batch ISPF REXX script which
reading the PS dataset with the customizations to be done
and using ISPF file tailoring services
will build one or more jobs ( really indifferent from the script point of view )
and will submit them