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

Concatenating GDG Version of a Dataset


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

New User


Joined: 10 Apr 2006
Posts: 1
Location: Bhubaneswar

PostPosted: Mon Apr 10, 2006 3:22 pm
Reply with quote

Hi,
What should I specify in the JCL to concatenate 'n' generations of dataset.
One approach is to list out all the generations. Is there any other approach.
Also can how do i specify if I want to concatenate all odd numbered generations?
Thank You,
Satish Sindiri
Back to top
View user's profile Send private message
raghu.bachu

New User


Joined: 04 Apr 2006
Posts: 2
Location: Mumbai

PostPosted: Mon Apr 10, 2006 4:51 pm
Reply with quote

HI Satish,

Quote:
What should I specify in the JCL to concatenate 'n' generations of dataset.

As mentioned in tis post only you need to write all versions only, if you want to concatename n generation,
If you want concatename all generation then write only base name.

Hope this helps
Back to top
View user's profile Send private message
Jerry

New User


Joined: 16 Sep 2005
Posts: 42

PostPosted: Tue Apr 11, 2006 4:41 pm
Reply with quote

Hi Satish,
If it is to copy all tbe generations of the GDG, then
you could use the infile as the base GDG to copy. Say, XXX.YYY.ZZZ is the GDG's base.

//STEP01 EXEC PGM=IDCAMS
//INFIL DD DSN=XXX.YYY.ZZZ,DISP=SHR
//OUTFIL DD DSN=xxx.yyy.zz1,
// DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INFILE(INFIL) OUTFILE(OUTFIL)
/*

CORRECT ME IF I AM WRONG.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top