View previous topic :: View next topic
|
Author |
Message |
ragganga
New User
Joined: 22 Jan 2007 Posts: 18 Location: bangalore
|
|
|
|
Hi All,
I have 1000 plus GDG base and Generation, now i have to Rename those GDG base and Generation
Please, can one help me to solve this problem?
If you send Syntax, it will be great help
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why do you HAVE to rename them all ??? |
|
Back to top |
|
|
harshadeshpande
New User
Joined: 23 Mar 2007 Posts: 5 Location: United States
|
|
|
|
I think you can rename a GDG by following the below steps:
1. Give Start 3.2
2. Give 'V' and you GDG name and press enter
You will get a list of VSAM utility.
3. Give Process request as 1 and Data Type as 1.
Change the name of the GDG. |
|
Back to top |
|
|
ragganga
New User
Joined: 22 Jan 2007 Posts: 18 Location: bangalore
|
|
|
|
Hi Expat,
These GDG base file and Generation is already present, because of requirement change i have to change all those GDG base file and generation
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yeah, but there's over a 1,000 of them. It would take forever to do it manually.
The easy part is the rename of the GDG sets, it's the bases that are the problems. You need to define the new bases exactly as the old bases before you start to rename the entries.
DASD will be easy, once the bases are defined. DFdss (PGM=ADRDSSU) to back up to tape and restore with new name. You could use COPY rather than dump/restore and leave the originals in place for fallback.
Obviously tape based entries would need to be copied one by one.
So back to my original question - why do they need to be renamed. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
OK, you have answered the rename one while I was busy typing.
Do you have the original GDG base definitions somewhere, if you do, great - just ISPF edit them to the new names, and set the bases up.
If not - Oh dear. Just something I've learned through experience. If it requires a definition - keep the definition cards somewhere safe, like a GDGDEF library.
You will have to LISTCAT all the GDG bases to get the characteristics of each one and then define the new base names, and then either use DFdss for DASD and IEBGENER for tapes.
Of course, whilst the renames are in progress you will have to stop any processing that accesses the new base names for fear of causing errors in the generation numbers. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Why is COPY needed for DASD? Define a new base and just rename the base portion of the GDGs leaving the GnnnVnn the same. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Because COPY can be performed using wildcards in DFdss, whilst rename manually requires the fully qualified DSN.
Just trying to stop the poor sod getting RSI - Rename Strain Injury |
|
Back to top |
|
|
ragganga
New User
Joined: 22 Jan 2007 Posts: 18 Location: bangalore
|
|
|
|
Hi harshadeshpande,
Thanks for help but i am getting error as VSAM file status 80 and it is asking Relate Data set. What is this Relate means in GDG?
thanks |
|
Back to top |
|
|
|