Page 1 of 1

Delete GDG

PostPosted: Sat Apr 03, 2010 2:31 am
by Shakthivel V
Hi , Consider i have 20 version of GDG . I need to delete the first 10 version of GDG alone?

Re: Delete GDG

PostPosted: Sat Apr 03, 2010 3:35 am
by dick scherrer
Hello,

It is not likely that you have 20 versions of any gdg. . . Do you understand the difference between generation and version (both are valid, but are quite different).

Show what you "have" now and what you want after your process completes.

Re: Delete GDG

PostPosted: Sat Apr 03, 2010 4:20 am
by Robert Sample
Since only one VERSION of a GDG GENERATION can be cataloged at one time, you cannot have 20 versions of a GDG -- ever. Hence your question is not possible as stated.

If you had said you have 20 generations of a GDG, you could delete 10 generations by using IEFBR14 or IDCAMS -- by specifying the appropriate delete statements for each of the 10 generations you want to get rid of.

Re: Delete GDG

PostPosted: Sun Apr 04, 2010 2:04 pm
by Shakthivel V
Dick ,

Suppose i have

Example.gdg1(1)
Example.gdg1(2)
Example.gdg1(3)
Example.gdg1(4)
Example.gdg1(5)
Example.gdg1(6)
Example.gdg1(7)
Example.gdg1(8)
Example.gdg1(9)
Example.gdg1(10)


i need to delete the first 5 alone?how..

Re: Delete GDG

PostPosted: Sun Apr 04, 2010 6:26 pm
by Robert Sample
Option 1: find the manual on the utility IEFBR14, read up on how it works, and use it to delete the generations you want to delete.

Option 2: find the manuals on the utility IDCAMS, read up on how the DELETE statement works, and use it to delete the generations you want to delete.

If you are unable to pursue option 1 OR option 2, I strongly recommend you reconsider IT as a career choice since IT requires independent thinking and working and this would be among the very easiest of the things you would be expected to accomplish on your own.

Re: Delete GDG

PostPosted: Sun Apr 04, 2010 7:32 pm
by Shakthivel V
Thanks Robert...