View previous topic :: View next topic
|
Author |
Message |
Maria_Cog
New User
Joined: 07 Aug 2009 Posts: 6 Location: india
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Maria_Cog
New User
Joined: 07 Aug 2009 Posts: 6 Location: india
|
|
|
|
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 |
|
|
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or use IDCAMS ALTER in a batch job.
To read the IDCAMS manual, Click HERE |
|
Back to top |
|
|
Maria_Cog
New User
Joined: 07 Aug 2009 Posts: 6 Location: india
|
|
|
|
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 |
|
|
Maria_Cog
New User
Joined: 07 Aug 2009 Posts: 6 Location: india
|
|
|
|
thank you i will read it and if i have a doubt i will post again
thanks:) |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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? |
|
Back to top |
|
|
|