xvsamerase

Top  Previous  Next

By means of xvsamDelete, catalog definitions and content of an XVSAM data set can be removed in one step. xvsamErase allows you to delete only the content of the data file. The definition of the cluster remains unchanged in the catalog and it can be reused later.

Its functionality corresponds to those of the IDCAMS statements: DELETE CLUSTER PURGE

Syntax

xvsamErase [-d<filename] <catalog> <cluster>

Options

-f

force to produce no error if dataset doesn't exist

-d<filename>

log file (if forced -d without filename xvsamDelete.log was created)

-l(0-15)

debugging level

catalog

is the name of the catalog the cluster belongs to

cluster

is the name of the cluster to be erased

 

A protocol file can be created during deletion, by specifying -d<name>. If no name is specified, the protocol file will be created as xvsamDelete.log.

The level of detail with which XVSAM should report the sequence of operations on the protocol file, may be specified by means of the -l<level> optional parameter.

Example:

 

# xvsamErase TESTCAT SNICTHLP -d

Return codes

0

Function correctly executed

12

error(s) trapped