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

How copy all previous version of GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 21, 2009 2:30 pm
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
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
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: 459
Location: Belgium

PostPosted: Fri May 22, 2009 11:05 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top