Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

setting global variable in CA7

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: setting global variable in CA7
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    Post subject:
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    Post subject: Reply to: setting global variable in CA7
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us