Page 1 of 1

Submit a JCL multiple times or run JCL in loop.

Posted: Sat Jul 23, 2016 11:28 am
by Nitin Kumar
There is a JCL which needs to be executed many number of times each time but by changing the parameter being passed to the JCL. I am not sure if it is possible but if I could somehow submit the JCL in loop, I would be able to get what we want. Can anyone help me out please.

Re: Submit a JCL multiple times or run JCL in loop.

Posted: Sat Jul 23, 2016 12:45 pm
by enrico-sorichetti
but by changing the parameter being passed
how do You plan to change them - are they computable ?

if they are ,
You could write a rexx script - using the ISPF file tailoring facilities - to customise and submit them

Re: Submit a JCL multiple times or run JCL in loop.

Posted: Sat Jul 23, 2016 1:10 pm
by nicc
If the parameter is not computable then store each one in its own member which has a name that can be computed e.g. MEM1, MEM2 etc and read the appropriate member into your rexx program.