View previous topic :: View next topic
|
Author |
Message |
RANJINI Warnings : 1 New User
Joined: 19 Apr 2005 Posts: 11
|
|
|
|
Hi,
I know we can use IEBGENER to copy by giving corresponding file in SYSUT1 & getting the desired output file thru SYSUT2. How can I copy generations from GDG to another without giving the generations of the file? My job runs on adhoc basis & can create a max of 30 files a month. So end of month I want to copy all the generations created to another GDG. Since number of generations is random, I want some generic logic to copy the GDG files.
will the following work? AF123.ABCD & AF123.WXYZ being GDG BASE
//STEP110 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=AF123.ABCD,DISP=SHR
//SYSUT2 DD DSN=AF123.WXYZ,DISP=SHR
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
Appreciate your quick response.
Thanks,
Ranjini |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DO NOT start a new topic on the back end of an existing one.
Your post is not very clear. Do you want to copy generation to generation, or to merge all of them into just one new generation of the other GDS.
If you want to copy generation to generation take a look at DFdss (PGM=ADRDSSU) |
|
Back to top |
|
|
RANJINI Warnings : 1 New User
Joined: 19 Apr 2005 Posts: 11
|
|
|
|
yes, I want to copy generation to generation.
can you pls gimme some more info on ADRDSSU? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then, click HERE to find out how to do it. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Ranjini,
I'm still not certain whether you want to copy:
30 GDG files to 30 new GDG files with same generation numbers, or
30 GDG files to 1 new GDG(+1) file?? |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Sounds like you have multiple input generations that can vary in number each month, and you want to combine them into one single generation of another GDG? If yes, all you have to do is specify the GDG base name as the input file and all generations will be read in regardless of the number. You can do that with an IEBGENER or SORT. |
|
Back to top |
|
|
|