| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| pvrajesh31 Beginner
 
  
 Joined: 10 Aug 2004
 Posts: 31
 Topics: 11
 
 
 | 
			
				|  Posted: Fri Sep 23, 2005 11:04 pm    Post subject: Renaming a GDG and all its generations |   |  
				| 
 |  
				| Hi , I need syntax for renaming a GDG and all its generations.
 
 Can somebody help me out ?
 
 Thanks in advance.
 _________________
 Rajesh
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Sat Sep 24, 2005 7:31 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Cogito-Ergo-Sum Advanced
 
 
 Joined: 15 Dec 2002
 Posts: 637
 Topics: 43
 Location: Bengaluru, INDIA
 
 | 
			
				|  Posted: Sat Sep 24, 2005 12:24 pm    Post subject: |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Sun Sep 25, 2005 8:32 am    Post subject: |   |  
				| 
 |  
				| Cogito, 
 Thanks for the test.
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |