View previous topic :: View next topic
|
Author |
Message |
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi,
I have few jobs where I need to change the cycle number in all the jcls. This is like execution cycyle no. of that month. This may be in dataset or in member.
Presently we added user requirements for every job to make a note of the change and we will do the change manually and release the job.
For Example.. in all the Jcls if I mention my cycle number as NN, before releasing job I will change all NN to number.
In this way is there any option to do automatically thru CA7. Before I start my first job of that cycle, can I set value to "NN". So that when ever that variable found it will override with the given value.
If anybody knows, please let me know. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
Have you condsidered using different schid to schedule the jobs.
You could then trigger differnet jobs dep on schid or include jclsteps within your jcl for each different schid. |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
I cannot use different schedule ids. As ours is testing cycles, we will execute same scheduled jobs in each test cycle. In every test cycle we need to change the cycle number in the JCLS where test cycle information is included. |
|
Back to top |
|
|
mark loftus
New User
Joined: 21 Jun 2006 Posts: 9
|
|
|
|
Where is the Cycle number in the JCL?
Is it merely a comment card, part of a DSN, etc.
If im understanding the query you can do the following;
1) Add an additional job to the start of you're suite
//SYMBOLIC EXEC PGM=IEBGENER
//SYSUT1 DD *,DOLMA=##
//SET1 SET VERSION=R66A
##
//SYSUT2 DD DSN=P.JCLPREP.PARMLIB(JCPCONV),DISP=OLD
//SYSPRINT DD SYSOUT=D
This will update the member 'P.JCLPREP.PARMLIB(JCPCONV)' with //SET1 SET VERSION=R66A
This set statment can then be used as a symbolic substiution in your other jobs.
2) Amend existing jobs so that they will use the set statment created in step 1.
Add these two lines to pick up the set statment
//JCLLIB JCLLIB ORDER=(P.JCLPREP.PARMLIB)
//INCLUD INCLUDE MEMBER=JCPCONV
then place the symbolic wherever required
eg
//****** cycle &version *****.
You can then put a user requirment on the new job. Change the cycle number and post the job.
Hope this helps. |
|
Back to top |
|
|
|