Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Setting Font Type for XMIT satish.ms10 All Other Mainframe Topics 3 Fri Sep 15, 2017 10:01 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Finding IMS resource blocker after se... Hooman24 IMS DB/DC 1 Wed Aug 16, 2017 9:17 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us