Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
avoiding to submit same jcl for different parameters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
hyuzen

Active User


Joined: 10 Jul 2005
Posts: 50

PostPosted: Thu Aug 18, 2005 2:02 am    Post subject: avoiding to submit same jcl for different parameters
Reply with quote

Hi all,

I need to submit same jcl -let's say- 30 times for different parameters each time. What do I have to do rather than submitting 30 times ?

Thanks in advance,

hyuzen
Back to top
View user's profile Send private message
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3380
Location: Charlotte,NC USA

PostPosted: Thu Aug 18, 2005 7:05 am    Post subject: Re: avoiding to submit same jcl for different parameters
Reply with quote

Have the job submit itself at the end for the other 29 times, changing the parameters before doing so?

Submit 1 job that calls a single PROC in 30 steps, each time with different parameters?

(I really don't get your question)
Back to top
View user's profile Send private message
hyuzen

Active User


Joined: 10 Jul 2005
Posts: 50

PostPosted: Fri Aug 19, 2005 1:58 am    Post subject:
Reply with quote

Hi,
To make my question clarify;
let's say, MYJOB001 is the job to be submited and A to Z can be used as parameters (26 different parameters).
I need to run MYJOB001 with the paramater A then I need to submit same jcl with the parameter B, then with C to Z.
Is it possible to run MYJOB001 26 times for each parameters of A to Z in a single submission ?

Thanks in advance,
hyuzen
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3380
Location: Charlotte,NC USA

PostPosted: Fri Aug 19, 2005 2:25 am    Post subject: Re: avoiding to submit same jcl for different parameters
Reply with quote

JCL doesn't take parameters. JCL Procedures do, which is why I mentioned that in my previous post. How do plan you intend to introduce the values of A through Z to the job? Through a program? A dataset? A parameter list (PARMLIB)?

It would seem from your last post that job MYJOB001 will have to be submitted once for the first parameter, and then as the last step, modify itself to set the next parameter value, submitting itself if the parameter is less than Z, and ending when the last parameter is Z.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1