Page 1 of 1

Read GDG from old to latest

PostPosted: Wed Oct 09, 2013 12:50 am
by gnishuanish
Hi All,

Is there any way to read GDG version from last to latest. For exapmle :- Suppose i have a GDG with 1 version and i want to merge all version from 10,9,8---1 like that.

Is there any way that we can do this.

Thanks
Anish

Re: Read GDG from old to latest

PostPosted: Wed Oct 09, 2013 12:57 am
by Akatsukami
Note that you should be speaking of generations[b], not versions[/b]. Fortunately, we have seen so many software engineers make that error it is easily recognizable to us.

Do a LISTCAT on the base, parse the list for the GDS names, and fabricate (or, preferably, tailor) and submit JCL and control cards as suit your fancy. So many software engineers have asked this question that there are examples on this board of all the code necessary; search the SMS/VSAM forum and this forum for it.

Re: Read GDG from old to latest

PostPosted: Wed Oct 09, 2013 3:53 am
by BillyBoyo
If you have a look at the Smart DFSORT Tricks publication, you can find an example of doing it. ftp://ftp.software.ibm.com/storage/dfso ... rttrck.pdf

Re: Read GDG from old to latest

PostPosted: Wed Oct 16, 2013 11:24 am
by vasanthagl
Please try giving GDG base name will internally include all the Generation of that GDG as input. :ugeek:

Re: Read GDG from old to latest

PostPosted: Wed Oct 16, 2013 12:12 pm
by NicC
Welcome vasanthagl.

What you suggested will allocate all the generations - but latest first and oldest last. The reverse sequence is needed.