| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| shekar123 Advanced
 
 
 Joined: 22 Jul 2005
 Posts: 528
 Topics: 90
 Location: Bangalore India
 
 | 
			
				|  Posted: Wed Feb 01, 2006 3:51 am    Post subject: need to copy a dataset to a GDG base with 10 generations |   |  
				| 
 |  
				| Hi All, 
 I have a requirement where in i have to copy a dataset to a GDG base with 10 generations in a single step.
 Assuming that I have already created a GDG base with 10 generations SHEKAR.TEST.OUTPUT.G .I want to copy the dataset SHEKAR.TEST.INPUT to all the 10 generations in a single step STEP0200 ,how can i achieve this ?
 
 
  	  | Code: |  	  | //STEP0100 EXEC PGM=IEBGENER
 //SYSUT1   DD   DSN=SHEKAR.TEST.INPUT,DISP=SHR
 //SYSUT2   DD   DSN=SHEKAR.TEST.OUTPUT,DISP=SHR
 //SYSPRINT DD SYSOUT=*
 //SYSOUT   DD SYSOUT=*
 //STEP0200
 
 | 
 
 Morever,I want to FTP the dataset SHEKAR.TEST.INPUT from another source to my test shop.Say if my another source is A and my test shop is B,how can i FTP the dataset to B?
 _________________
 Shekar
 Grow Technically
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| shekar123 Advanced
 
 
 Joined: 22 Jul 2005
 Posts: 528
 Topics: 90
 Location: Bangalore India
 
 | 
			
				|  Posted: Wed Feb 01, 2006 5:52 am    Post subject: |   |  
				| 
 |  
				| Kolusu, 
 The solution provided by is quite informative but i am looking out for a different requirement where in i have to copy a dataset to a newly created GDG base with 10 generations in a single step and i may be misunderstanding from the solution provided by you.
 
 I am looking for:
 
 
  	  | Code: |  	  | //STEP0100 EXEC PGM=IEBGENER
 //SYSUT1   DD   DSN=SHEKAR.TEST.INPUT,DISP=SHR
 //SYSUT2   DD   DSN=SHEKAR.TEST.OUTPUT,DISP=SHR
 //SYSPRINT DD SYSOUT=*
 //SYSOUT   DD SYSOUT=*
 //STEP0200 WHICH COPIES THE DATSET SHEKAR.TEST.INPUT TO
 THE GDG SHEKAR.TEST.OUTPUT.G WITH ALL THE 10 generations
 
 | 
 
 _________________
 Shekar
 Grow Technically
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Wed Feb 01, 2006 5:58 am    Post subject: |   |  
				| 
 |  
				| shekar123, 
 You cannot do that.  AFAIK there is no utility that can map input gen 1 to output gen 1 and so on...
 
 However with ADRSSU you can rename your Input gdg to output gdg there by acheiving the same results. Search this forum for ADRDSSU and you will find documentation as well as examples.
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |