Submit a JCL multiple times or run JCL in loop.

JES2/3, JCL, utilities.
Previous topicNext topic

Topic Author
Nitin Kumar
Registered Member
Posts: 11
Joined: Tue Sep 02, 2014 8:13 pm

Submit a JCL multiple times or run JCL in loop.

Post by Nitin Kumar » Sat Jul 23, 2016 11:28 am

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.




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 875
Joined: Wed Sep 11, 2013 3:57 pm

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

Post by enrico-sorichetti » Sat Jul 23, 2016 12:45 pm

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


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)


nicc
Global Moderator
Global Moderator
Posts: 580
Joined: Wed Apr 23, 2014 8:45 pm

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

Post by nicc » Sat Jul 23, 2016 1:10 pm

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.


Regards
Nic

Previous topicNext topic

Return to “JCL - Job Control Language.”