IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy unknown number of GDS generations


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RANJINI
Warnings : 1

New User


Joined: 19 Apr 2005
Posts: 11

PostPosted: Fri Dec 18, 2009 3:40 pm
Reply with quote

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 icon_question.gif

//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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 18, 2009 4:05 pm
Reply with quote

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
View user's profile Send private message
RANJINI
Warnings : 1

New User


Joined: 19 Apr 2005
Posts: 11

PostPosted: Fri Dec 18, 2009 4:46 pm
Reply with quote

yes, I want to copy generation to generation.
can you pls gimme some more info on ADRDSSU?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 18, 2009 4:48 pm
Reply with quote

Then, click HERE to find out how to do it.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Dec 18, 2009 11:00 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Mon Jan 04, 2010 11:12 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top