Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to copy all GDG generations to another GDG ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sudheeshnithya

New User


Joined: 22 Jul 2008
Posts: 2
Location: chennai

PostPosted: Tue Jul 22, 2008 12:46 pm    Post subject: How to copy all GDG generations to another GDG ?
Reply with quote

Hi All,

I have GDG having 300 generations. I want to copy all generations into another GDG file. Is there a way to copy from GDG base with all generations to another GDG file or sequential file. I have tried the following job to copy. But many times i ran the same job to copy all generations. Can anyone give me idea how to copy in one step ?

//TRKD0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTWK01 DD SPACE=(CYL,(20,5),RLSE)
//SORTWK02 DD SPACE=(CYL,(20,5),RLSE)
//SORTWK03 DD SPACE=(CYL,(20,5),RLSE)
//SORTWK04 DD SPACE=(CYL,(20,5),RLSE)
//SYSPRINT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=NDTK.TRHG.TG.FILE(-1)
// DD DISP=SHR,DSN=NDTK.TRHG.TG.FILE(-2)
// DD DISP=SHR,DSN=NDTK.TRHG.TG.FILE(-3)
//SORTOUT DD DSN=NDTK.NEWFILE.TEST(+1),
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1000,500),RLSE),
// DCB=(*.SORTIN)
//* DCB=(RECFM=VB,LRECL=32756)
//SYSIN DD *
SORT FIELDS=COPY
Back to top
View user's profile Send private message

karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Tue Jul 22, 2008 12:50 pm    Post subject: Reply to: How to copy all GDG generations to another GDG ?
Reply with quote

Hi,

In sortin just give the base name. It will copy all generations.

Regards
R KARTHIK
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jul 22, 2008 12:54 pm    Post subject:
Reply with quote

Hi,

the only thing to remember when using just the GDG base name is that the files are read from the oldest first.


Gerry
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Tue Jul 22, 2008 1:01 pm    Post subject:
Reply with quote

Rajan,

Quote:
But many times i ran the same job to copy all generations.


Why do you want to run the job multiple times?. I could nt get this part

Thanks,
Arun
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jul 22, 2008 1:11 pm    Post subject:
Reply with quote

Hi,

I have a question, how did you manage to get 300 GDG's, I'm assuming it's the same GDG base when 255 is the limit.


Gerry
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: Tue Jul 22, 2008 1:39 pm    Post subject:
Reply with quote

gcicchet wrote:
Hi,
I have a question, how did you manage to get 300 GDG's, I'm assuming it's the same GDG base when 255 is the limit.
Gerry

Yeah, I'd like the answer to that one too.
Back to top
View user's profile Send private message
sudheeshnithya

New User


Joined: 22 Jul 2008
Posts: 2
Location: chennai

PostPosted: Tue Jul 22, 2008 2:17 pm    Post subject: Reply to: How to copy all GDG generations to another GDG ?
Reply with quote

Hi,

I am new to this forum. Actually the active generation is started from G3740V00 to G3859V00. I want to copy the entire generations to another GDG or sequential file. sorry to say this, instead of 200 generations, i mentioned 300 generations in my previous mail. Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Jul 22, 2008 2:39 pm    Post subject:
Reply with quote

How about rename?

by the way, g3740 to g3859 is more like 119.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jul 22, 2008 3:29 pm    Post subject:
Reply with quote

Hi Dick,

I agree 119 is closer to the mark but 120 is more accurate icon_lol.gif


Gerry
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Jul 22, 2008 3:44 pm    Post subject:
Reply with quote

gcicchet,

Du hast Recht.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jul 22, 2008 4:04 pm    Post subject:
Reply with quote

Dick,

non so sempre corretto.


Gerry
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Jul 22, 2008 4:16 pm    Post subject:
Reply with quote

gcicchet,

I am not either, but you were this time.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us