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

JCL DD Name AUTOMATION


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Abhinesh

New User


Joined: 24 Aug 2008
Posts: 2
Location: Pune

PostPosted: Sun Aug 24, 2008 6:45 pm
Reply with quote

Hi all,
I am automating some JCL changes in FoCUS....
Date changes....

There are some Dates available in DD Name...like below


wsd2008 DD DSN=GM5303M.C5303.N451.SPANDATA.JUL2008.DATA

now in 2009 i need to change WSD2008 to WSD2009,

How to automate this step in JCL.?

I thought of USING SET Parameter...but its not feasible..any way i have to update the JCL....

I am thinking of USING an EXTERNAL FILE(having all date changes, will be updated once in year) that changes will be pass to JCL...
Please tell me any way to achive this....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Aug 24, 2008 8:14 pm
Reply with quote

Hello Abhinesh and welcome to the forums,

One answer is to "edit the jcl" each year.

You need to post a much more clear definition of what you want to do.

You need to show some existing jcl (not one statement) and what the "new" jcl should look like (i suspect the one line you posted is not complete/correct). . .

Where is this jcl? How much jcl is there? Is it in several members?

Why is using SET not feasible?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Aug 24, 2008 8:44 pm
Reply with quote

Abhinesh wrote:
I thought of USING SET Parameter...but its not feasible.


Why is using SET not feasible? It seems like your best option if you can use it from an INCLUDED libray.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sun Aug 24, 2008 9:56 pm
Reply with quote

Why would you be changing the DDName instead of the DSN!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 25, 2008 2:39 am
Reply with quote

A new scheme that alters ddnames rather than dsnames. . . icon_confused.gif
Back to top
View user's profile Send private message
Abhinesh

New User


Joined: 24 Aug 2008
Posts: 2
Location: Pune

PostPosted: Mon Aug 25, 2008 11:03 am
Reply with quote

Thanks for Reply...

I am executing the Focus codes to Create reports Monthly basis...
I have automated the monthly code using focus...

But there are some YEAR changes in DD name...these are the decode table names actuallly in Focus..we can not handle this in focus....

ALL JCL ARE FROM PRODUCTION ....such changes are present in 200+ jcls...heance it is not feasible to use SET at the begining...and updating all jcl yearly....

instead of this how can we pass variable to all the files externally...?

Advantage of this is I dont have to update all 200+ jcls ...insteatd of that i have to update ONLY ONE FILE......

Code:
PAYEWC08 DD DSN=P3167BTX.F316761D.COMPPAY1.CYR(0),DISP=SHR
         DD DSN=P3167BTX.F316761D.COMPPAY2.CYR(0),DISP=SHR
         DD DSN=P3167BTX.F316761D.COMPPAY3.CYR(0),DISP=SHR
CREDWC08 DD DSN=P3167BTX.F316761H.COMPCRD.CYR(0),DISP=SHR


Example of JCL is given above..???

ANY IDEA HOW TO HANDLE SUCH SITUATION???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 25, 2008 7:54 pm
Reply with quote

Hello,

Quote:
But there are some YEAR changes in DD name
Why? I suppose it is too late to change, but the better design would be to have a table called "the_codes" rather than something like "the_codes_2009". The content could be for any year and not require a ddname change each year.

Also, keep in mind that while your question is completely clear to you, it is not to others (which is maybe why there have been so few replies).

I believe we all would agree that doing less manually is a good thing, but your requirement is not clear nor is how you want to address it.

There may be something that will help in this topic:
ibmmainframes.com/viewtopic.php?t=9298

You will also do yourself (and us icon_smile.gif ) a favor if you use the "Code" tag.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts UC Automation TSO/ISPF 9
No new posts A very ingenious mainframe automation... CA Products 1
No new posts CA Workload Automation event code help CA Products 10
No new posts Automation of data entry using Rexx i... CLIST & REXX 4
Search our Forums:

Back to Top