Freeware/PurgeDat
System

PurgeDat

Purge Data on Enscribe type files with alternate key files

Description

PURGEDAT performs a purge data on a set of files, and optionally
de-allocates all extents.
It also takes all alternate key files into account.
To purge data a file that has alternate key files, you MUST perform
the FUP PURGEDATA command (or the CONTROL operation) on every single
file. It is NOT OK to perform this command on the primary file only!
I found this boring, and developed a small tool that does exactly
this: In case a PURGEDATA has to be performed on a file, the primary
file as well as all corresponding AK files get their EOF set to zero.
To successfully perform a purge data operation, the PURGEDAT user must
have WRITE access on the file(s).

Version history

22Oct2010Code refresh.
06Sep2010Handling of unstructured files corrected. This change is done in the GHSLIB library procedures.
05Aug2008Typo eliminated.
12Jun2007In case a file is open, the user now is requested to accept the file to be processed.
17Jan2007PurgeDat did not perform the purge data operation correctly when the EOF of the first partition of a partitioned file was zero, while a subsequent partition had some data.
24Apr2006A day one bug was found: System numbers, representing a lower case character, where upshifted. This could cause a aproblem when the 'new' number was an unknown system.