IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Rename GDG base and Generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Fri Mar 23, 2007 12:13 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 23, 2007 2:08 pm
Reply with quote

Why do you HAVE to rename them all ???
Back to top
View user's profile Send private message
harshadeshpande

New User


Joined: 23 Mar 2007
Posts: 5
Location: United States

PostPosted: Fri Mar 23, 2007 2:52 pm
Reply with quote

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
View user's profile Send private message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Fri Mar 23, 2007 2:56 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 23, 2007 3:00 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 23, 2007 3:12 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 3:13 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 23, 2007 3:17 pm
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Fri Mar 23, 2007 3:27 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
Search our Forums:

Back to Top