
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-144
PURGE Examples
PURGE cannot dispose of SQL files that are not SQL object files. Instead, you
must use SQLCI PURGE.
For objects compiled by SQL, PURGE displays error 197 (an SQL error has
occurred).
You can purge a file only if it is not in use (that is, it cannot be open, running, or
undergoing a backup process). You also must have purge access or be logged on
as the super ID (255,255).
If you try to purge a file before its expiration date (NOPURGEUNTIL attribute), an
error occurs. To alter the expiration date, use the ALTER command.
If you purge a file that has the CLEARONPURGE option set (for more information,
see
SECURE
on page 2-166), the disk process physically deletes the file data from
the disk (overwrites it with blank data) and then deletes the file name from the
directory.
In the LISTALL mode, PURGE lists each file name immediately after deleting it. If
you press the BREAK key while FUP is running, the PURGE command terminates
and does not delete any remaining files in
fileset-list
.
PURGE Examples
To purge the file WKLYRPRT in the current default subvolume without prompting
for permission:
-PURGE WKLYRPRT !
$MYVOL.RECDS.WKLYRPRT PURGED.
1 FILE PURGED
To purge an entire file set without prompting for permission by including the
!
option:
To purge an entire file set without being prompted (and without getting a list of the
files purged), include the
!
and NO LISTALL options:
To purge all files other than EDIT files that start with the letter M or later:
-PURGE $VOL1.SVOL.*FILE !
$VOL1.SVOL.MYFILE PURGED.
$VOL1.SVOL.NEWFILE PURGED.
$VOL1.SVOL.OLDFILE PURGED.
3 FILES PURGED
-
-PURGE ($VOL1.SVOL.*), NO LISTALL !
3 FILES PURGED
-
PURGE * WHERE NOT FILECODE=101 START M