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
 
Concatenating GDG Version of a Dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Concatenating GDG Version of a Dataset
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    Post subject: Re: Concatenating GDG Version of a Dataset
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    Post subject:
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    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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm

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