NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
P-36
PURGEDATA Command
PURGEDATA Command
PURGEDATA is an SQLCI utility that clears data from SQL tables and their indexes,
from specified partitions of SQL tables without indexes, or from Enscribe files or
specified partitions of Enscribe files.
PURGEDATA works on audited files as well as on unaudited files but—unlike most
other operations on audited files—PURGEDATA cannot be used within a user-defined
TMF transaction and cannot be rolled back.
qualified-fileset-list
specifies the tables, partitions, and files to clear.
When clearing an entire SQL table, PURGEDATA also clears data from all indexes
defined on the table. PURGEDATA does not automatically clear alternate key files
of Enscribe files.
If qualified-fileset-list includes a primary or secondary partition of an
SQL table or the primary partition of an Enscribe file, PURGEDATA clears the
entire file or table associated with the partition, including all other partitions, unless
you specify the PARTONLY option; if you specify PARTONLY, PURGEDATA
clears only the partitions included in qualified-fileset-list.
If qualified-fileset-list includes a secondary partition of an Enscribe file
(but not the primary partition) and you do not specify the PARTONLY option,
PURGEDATA does not clear the secondary partition (or any other partitions of that
file).
If ServerWare SMF is installed on your node, qualified-fileset-list
cannot specify any object or file on a $*.ZYS*. subvolume.
ALLOWERRORS [ ON | OFF | num ]
specifies what happens if errors occur:
If you omit the ALLOWERRORS clause completely, the default is
ALLOWERRORS OFF. If you specify ALLOWERRORS but do not specify an
option, the default is ALLOWERRORS ON.
PURGEDATA qualified-fileset-list
[| [,] ALLOWERRORS [ ON | OFF | num ] |]
[| [,] [ NO ] LISTALL |] ;
[| [,] PARTONLY |]
ON Attempt to clear all specified tables, partitions, and files, no matter how many
errors are encountered.
OFF Stop the operation after a single error.
num Clear all specified tables, partitions, and files until the number of errors exceeds
num.