Tuesday, December 6, 2011

Detailed explanation for EMPTY/NOEMPTY and SCRATCH/NOSCRATCH

What do the options EMPTY/NOEMPTY and SCRATCH/NOSCRATCH mean, when you define a GDG ?


Empty means when the maximum limit for the GDG is exceeded ALL the older versions of the GDG must be uncataloged.

Noempty means when the maximum limit for the GDG is exceeded only the first version(or the oldest version) of the GDG must be uncataloged.

Scratch means that when a version of the GDG is deleted because of some reason(either due to user request or due to expiry or maximum limit for GDG is exceeded), then the dataset must be Physically deleted from the system.

Noscratch means that when a version of the GDG is deleted it should only by uncataloged and Not physically deleted from the system.


Just in case anyone does not understand what it means to uncatalog, but not physically delete (for option NOSCRATCH), it just means that when you do a LISTCAT on the dataset, you won't find the 'deleted' version(s), but when you inquire the same in DSLIST (option 3.4 from the ISPF primary options menu), you can see it, and can make use of it.

Now, let me add one more question - If I have used the option NOSCATCH, and the LIMIT for the GDG has been exceeded at least once, then if I use the base cluster name as input to one of my programs (meaning consider all versions), then will it consider the 'deleted' version(s) too ? Or will it consider only the versions shown in catalog? Think about it....

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.