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