Page 1 of 3

QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 2:48 pm
by bineesh
Friends,

DELETE GDG - deletes only index.

DELETE GDG FORCE - deletes all the attributes including generations

DELETE GDG PURGE - deletes all before the retention period.

Whenever we allocate a gds a retention period will be recorded for that data set and the same will get deleted from DASD at the retention period.

My query was

what was the difference between FORCE and PURGE.

Bcoz FORCE is also used to delete all the generations before the retention period.

kindly let me know how PURGE exactly differs from FORCE.

Re: QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 4:20 pm
by Robert Sample
DELETE GDG FORCE deletes the GDG base -- after which, you no longer have access to that GDG.

Re: QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 9:05 pm
by shabukumar
Thanks Robert,

But Kindly let me know as DELETE GDG FORCE also deletes all by overriding the retention period, what is the exact use of PURGE.

How can we differ FORCE from PURGE.

Re: QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 9:14 pm
by enrico-sorichetti
why not look Yourself at the manual ???

z/OS V1R10.0 DFSMS AMS for Catalogs
http://publibz.boulder.ibm.com/cgi-bin/ ... 0602132758
here for the delete command
http://publibz.boulder.ibm.com/cgi-bin/ ... 0602132758
for the delete optional parameters
http://publibz.boulder.ibm.com/cgi-bin/ ... 0602132758

I posted the links to the specific chapters/paragraphs to save You some of Your precious time 8-)

Re: QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 9:18 pm
by shabukumar
Thanks enrico,

Kindly let me go through these and let you know am I got clear or not.

Re: QUERY REG DELETE GDG

PostPosted: Wed Nov 24, 2010 9:24 pm
by shabukumar
Hi,

I gone through those which I am already familiar.

I need to know the exact difference between FORCE and PURGE as FORCE also deletes the generations regardless of retention period.

In both cases the GDG base, model and its generation will be deleted from DASD.

So when we use FORCE, the GDG get deleted with all its generation from DASD before the expiration of retention period right (same as PURGE)?

Hope you understood my query.

Kindly let me clarify.

Re: QUERY REG DELETE GDG

PostPosted: Thu Nov 25, 2010 12:08 am
by Robert Sample
In both cases the GDG base, model and its generation will be deleted from DASD.
How did you get that from the manual statement on what PURGE does? There's no indication in the manual that PURGE does this -- so why do you think it does?

Re: QUERY REG DELETE GDG

PostPosted: Thu Nov 25, 2010 1:44 am
by steve-myers
DELETE gdgindex FORCE

deletes any GDG datasets cataloged in gdgindex, and then deletes the GDG index. It will not delete disk data sets allocated with an expiration date that has not expired; it will not delete the index if it cannot delete all the data sets cataloged in the GDG index.

DELETE gdgindex FORCE PURGE

deletes any GDG data sets cataloged in gdgindex, even if their expiration dates are greater than the current date, and then deletes the GDG index.

Re: QUERY REG DELETE GDG

PostPosted: Thu Nov 25, 2010 2:39 pm
by shabukumar
Thanks steve,

But Whenever a GDS is created, a retention period was automatically recorded for the same by MVS. On that retention period the GDS will be deleted automatically.

From your reply I got the detail like GDS can be created with or without expiration date(retention period).

Is that possible. If possible, kindly let me know how to do it.

Robert,

Physical deletion of GDG means, deleting GDG from the DASD right? (I got the info from a manual like it was physical deletion)

Kindly let me clarify If I am wrong.

Re: QUERY REG DELETE GDG

PostPosted: Thu Nov 25, 2010 6:29 pm
by expat
shabukumar wrote:But Whenever a GDS is created, a retention period was automatically recorded for the same by MVS. On that retention period the GDS will be deleted automatically.
Kindly let me clarify If I am wrong.

I have never seen a retention period set as default to GDS. In fact when I set up an SMS environment any user specified retention periods are just ignored.

I think that you will also find that a GDS will still be retained even if a retention period was permitted so long as it remains cataloged, even after said retention period has expired.