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 

need to copy a dataset to a GDG base with 10 generations

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Feb 01, 2006 3:51 am    Post subject: need to copy a dataset to a GDG base with 10 generations Reply with quote

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


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

PostPosted: Wed Feb 01, 2006 5:26 am    Post subject: Reply with quote

shekar123,

Please search before posting . check this link which discusses about copying 1 gdg to another GDG

http://mvsforums.com/helpboards/viewtopic.php?t=2109&highlight=gdg+intrdr

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
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Feb 01, 2006 5:52 am    Post subject: Reply with quote

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


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

PostPosted: Wed Feb 01, 2006 5:58 am    Post subject: Reply with quote

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
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 -> Job Control Language(JCL) 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