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
 
JCL DD Name AUTOMATION

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL DD Name AUTOMATION
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

Site Director


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

PostPosted: Sun Aug 24, 2008 8:14 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Sun Aug 24, 2008 8:44 pm    Post subject: Re: JCL DD Name AUTOMATION
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    Post subject:
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

Site Director


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

PostPosted: Mon Aug 25, 2008 2:39 am    Post subject: Reply to: JCL DD Name AUTOMATION
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    Post subject:
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

Site Director


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

PostPosted: Mon Aug 25, 2008 7:54 pm    Post subject:
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:
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Automation of data entry using Rexx i... zingy.rajeev CICS 0 Mon Aug 22, 2016 4:11 pm
No new posts Automation in DB2 chhabraravneet DB2 4 Fri Dec 11, 2015 9:59 pm
No new posts Automation JCL Problem - PDSM18 input... PokerGuru JCL & VSAM 4 Wed Aug 19, 2015 12:05 am

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