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
 

 

How copy all previous version of GDG

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

New User


Joined: 28 Jan 2009
Posts: 11
Location: chennai

PostPosted: Thu May 21, 2009 2:23 pm    Post subject: How copy all previous version of GDG
Reply with quote

Hi,
I have below requirement.
Create a jcl to find all generations of a GDG ( not limit, it current status) and copy all the version to one PS file.

Regards,
Suresh
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Thu May 21, 2009 2:30 pm    Post subject: Reply to: How copy all previous version of GDG
Reply with quote

look at the jcl reference and You will see that
using as the dsname the base name will concatenate all the active generations
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu May 21, 2009 4:40 pm    Post subject:
Reply with quote

Code:

//STEP0200 EXEC PGM=SORT                                         
//SORTIN   DD DSN=gdgbase,DISP=SHR     
//SORTOUT  DD DSN=flatfile,DISP=(new,catlg,delete)                 
//SYSOUT   DD SYSOUT=*                                           
//SYSIN    DD *                                                   
  SORT FIELDS=COPY
/*         
Back to top
View user's profile Send private message
rsnram007

New User


Joined: 28 Jan 2009
Posts: 11
Location: chennai

PostPosted: Fri May 22, 2009 7:39 am    Post subject: Reply to: How copy all previous version of GDG
Reply with quote

Thanks .......it is working Fine


Regards,
Suresh
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri May 22, 2009 11:05 am    Post subject:
Reply with quote

... and why this in DB2 forum?
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 Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
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 GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm


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