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
 

 

How to Rename GDG base and Generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to Rename GDG base and Generation
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 23, 2007 2:08 pm    Post subject:
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    Post subject: Renaming of GDGs
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    Post subject: Re: How to Rename GDG base and Generation
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 23, 2007 3:00 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 23, 2007 3:12 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 3:13 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 23, 2007 3:17 pm    Post subject:
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    Post subject: Re: How to Rename GDG base and Generation
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    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 Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts Generic rename by pattern‏ Steve Coalbran CLIST & REXX 6 Mon May 30, 2016 9:34 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am


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