View previous topic :: View next topic
|
Author |
Message |
Abhinesh
New User
Joined: 24 Aug 2008 Posts: 2 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Why would you be changing the DDName instead of the DSN! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
A new scheme that alters ddnames rather than dsnames. . . |
|
Back to top |
|
|
Abhinesh
New User
Joined: 24 Aug 2008 Posts: 2 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 ) a favor if you use the "Code" tag. |
|
Back to top |
|
|
|