Page 1 of 1

Output should combine all the data of input GDG

PostPosted: Fri Jun 29, 2012 11:45 am
by gauthamnagpur18
Hi ,

I got one requirement . Input is GDG and output should combine all the generation's data.

Is it possible through DFSORT/ICETOOL?

Thanks,
Gautham :D

Re: Output should combine all the data of input GDG

PostPosted: Fri Jun 29, 2012 12:29 pm
by NicC
It is possible through any copy program. What is your problem? Read up about GDGs. There is nothing special about them apart from their naming convention which allows you, in this case, to provide a shortcut to specifying the dataset names to be used.

Re: Output should combine all the data of input GDG

PostPosted: Fri Jun 29, 2012 7:24 pm
by dick scherrer
Hello,

Do you have this running yet?

Is it possible through DFSORT/ICETOOL?
Yes, just mention the GDG base in the SORTIN DD statement.

As Nic mentioned, you should read about GDG processing so you will have a better understanding of how these might be used.

Re: Output should combine all the data of input GDG

PostPosted: Fri Jun 29, 2012 11:03 pm
by skolusu
gauthamnagpur18,

As others mentioned you can just give the GDG base name and it will copy all the generations associated with it. However there is a caveat. If you copy GDG generations using the base name, the records are copied in last in, first out order (LIFO). If you have 5 generations, the records of the fifth generation will appear first, followed by the records of the fourth generation and so on. If instead, you want the records copied in first in, first out order (FIFO), so that the records of the first generation will appear first, followed by the records of the second generation and so on, you can use the smart DFSORT trick " Copy GDG records in first in, first out order" which is shown here

http://www.ibm.com/support/docview.wss? ... g3T7000094