Submit a JCL multiple times or run JCL in loop.

JES2/3, JCL, utilities.
Post Reply
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 »

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: 826
Joined: Wed Sep 11, 2013 3:57 pm

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

Post 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
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: 691
Joined: Wed Apr 23, 2014 8:45 pm

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

Post 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.
Regards
Nic
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”