Submit a JCL multiple times or run JCL in loop.

JES2/3, JCL, utilities.

Topic author
Nitin Kumar
Registered Member
Posts: 11
Joined: Tue Sep 02, 2014 8:13 pm
Has thanked: 2 times

Submit a JCL multiple times or run JCL in loop.

Postby 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.



Online

enrico-sorichetti
Global Moderator
Global Moderator
Posts: 822
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 69 times

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

Postby 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: 544
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

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

Postby 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


Return to “JCL - Job Control Language.”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 1 guest