Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy unknown number of GDS generations

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy from GDG to another w/o giving no. of generations
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: 8593
Location: Back in jolly old England

PostPosted: Fri Dec 18, 2009 4:05 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Dec 18, 2009 4:48 pm    Post subject:
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    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Mon Jan 04, 2010 11:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us