Page 1 of 1

How to 'empty' all the versions in a GDG?

Posted: Mon Oct 13, 2014 3:42 pm
by Nidhi Veloo
Hi all,

How could I clear the data from all the versions of a GDG? By clear the data I mean make them empty.

please help.

Re: How to 'empty' all the versions in a GDG?

Posted: Tue Oct 14, 2014 12:26 pm
by Anuj Dhawan
Hi Nidhi,

I'm not sure if there is an easy way out (which works for all the generations together) to do this apart from working with individual generations and use SORT:

Code: Select all

OPTION COPY 
OMIT COND=ALL
If you clarify more, we might be able to answer better.

Re: How to 'empty' all the versions in a GDG?

Posted: Tue Oct 14, 2014 5:11 pm
by Robert Sample
1. A GDG has generations usually -- there can only be one version per generation and that is usually V00. To make it V01, the V00 will be deleted.

2. What do you mean by "empty"? Do you mean to keep the generations but remove all the data from the data set, or just remove all the generations from the GDG?