IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

setting global variable in CA7


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Mon May 12, 2008 1:47 am
Reply with quote

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
View user's profile Send private message
evanswillo

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Mon May 12, 2008 5:39 pm
Reply with quote

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
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Sun May 18, 2008 4:50 am
Reply with quote

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
View user's profile Send private message
mark loftus

New User


Joined: 21 Jun 2006
Posts: 9

PostPosted: Fri May 23, 2008 8:27 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top