MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Renaming a GDG and all its generations

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
pvrajesh31
Beginner


Joined: 10 Aug 2004
Posts: 31
Topics: 11

PostPosted: Fri Sep 23, 2005 11:04 pm    Post subject: Renaming a GDG and all its generations Reply with quote

Hi ,
I need syntax for renaming a GDG and all its generations.

Can somebody help me out ?

Thanks in advance.
_________________
Rajesh
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Sat Sep 24, 2005 7:31 am    Post subject: Reply with quote

pvrajesh31,

Is the GDG you are trying to rename a DASD gdg or a Tape GDG ? If the GDG is on a tape then you cannot rename it as name of the DSN is written on the tape label.

Why not simply

a. Define the new GDG base.
b. Copy the datasets one at a time to the new GDG base.
c. Delete the old GDG datasets.
d. Delete the old GDG base.

Another alternative is

a. Create the New GDG base.
b. Run the following JCL to rename the GDG

Code:

//STEP0100 EXEC PGM=IKJEFT01
//SYSTSPRT DD  SYSOUT=*,DCB=BLKSIZE=121
//SYSTSIN  DD  *
 RENAME 'your.old.GDG.G0001V00' 'your.new.GDG.G0001V00'
/*


However I am not sure that the new GDG's will be linked to the new base. so test it out first. RUN LISTCAT ALL command on the new GDG base and see if it pulls the version names also

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sat Sep 24, 2005 12:24 pm    Post subject: Reply with quote

Quote:
However I am not sure that the new GDG's will be linked to the new base.

Kolusu,
They are still linked.

I created a GDG base and allocated a dataset using 3.2 with GnnnnVmm suffix and then wrote a copy step taking the GDG base as the input dataset. This step copies the content in the GDG generation.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Sun Sep 25, 2005 8:32 am    Post subject: Reply with quote

Cogito,

Thanks for the test.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group