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
 

 

Renaming GDG versions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Maria_Cog

New User


Joined: 07 Aug 2009
Posts: 6
Location: india

PostPosted: Fri Aug 07, 2009 12:17 pm    Post subject: Renaming GDG versions
Reply with quote

hi,

I have a file which is a GDG,

eg: ADWFACET.PROD.AD7045X.LODI18.G0558V00

I want to rename the versions with their respective date of creation in place of G0558V00,

i/p: ADWFACET.PROD.ADW7045X.LODI18.G0558V00
o/p: ADWFACET.PROD.ADW7045X.LODI18.OLD0711

Hi am new to this forum, this my first post so kindly excuse any mistakes and please point it out if i need to change anything

Thank You.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 07, 2009 12:22 pm    Post subject:
Reply with quote

So what is the issue here, rename it. If you are not happy with doing this with production datasets, set up some test GDS and rename them as a trial before going for it on production.

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem
Back to top
View user's profile Send private message
Maria_Cog

New User


Joined: 07 Aug 2009
Posts: 6
Location: india

PostPosted: Fri Aug 07, 2009 12:34 pm    Post subject:
Reply with quote

hi expat
am very new to mainframes
sure will do use the correct terminology in the future posts
Please tell me how to rename a file
Back to top
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Fri Aug 07, 2009 12:40 pm    Post subject:
Reply with quote

Quote:
Please tell me how to rename a file


Hi if it is production dataset and you dont have access to rename .. ask your support people ... else you can easily rename with 'r' option against the dataset name ..


Hope this helps !!!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 07, 2009 12:42 pm    Post subject:
Reply with quote

Or use IDCAMS ALTER in a batch job.

To read the IDCAMS manual, Click HERE
Back to top
View user's profile Send private message
Maria_Cog

New User


Joined: 07 Aug 2009
Posts: 6
Location: india

PostPosted: Fri Aug 07, 2009 12:43 pm    Post subject:
Reply with quote

thanks for the suggestion
its production one

I wanna know is there a way that rename can be done using JCL so that i can run it from my production environment
Back to top
View user's profile Send private message
Maria_Cog

New User


Joined: 07 Aug 2009
Posts: 6
Location: india

PostPosted: Fri Aug 07, 2009 12:44 pm    Post subject:
Reply with quote

thank you i will read it and if i have a doubt i will post again

thanks:)
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Fri Aug 07, 2009 12:46 pm    Post subject:
Reply with quote

Hello,

If the GDG has 10 generations, is your requirement to rename each generation based on the GDS creation date? Would n't that be a 'COPY ' instead of 'RENAME'?
Am I missing something here? icon_rolleyes.gif
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 How to check if any of the GDG versio... ovreddy JCL & VSAM 3 Fri Jun 12, 2015 1:28 am
No new posts Related to GDG versions creations David Robinson JCL & VSAM 5 Tue Jan 20, 2015 11:14 am
No new posts GDG versions not being selected for b... Randy Wood SYNCSORT 2 Wed Aug 27, 2014 10:24 pm
No new posts Renaming a dynamic flat file using JCL Sushruta Pradhan JCL & VSAM 4 Thu Jul 03, 2014 9:57 am
No new posts ISRSUPC -renaming OUTDD output dd sta... PokerGuru JCL & VSAM 11 Tue Jul 01, 2014 10:07 pm


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