>>-+--------------------+--------------------------------------><
+-DELETECATALOGENTRY-+
'-DELCATE------------'
DELETECATALOGENTRY
specifies that the user wants to perform a disaster
recovery and that the existing catalog entries for the target data
sets might no longer be valid. If a target data set is cataloged but
not available, then DFSMSdss performs a DELETE NOSCRATCH operation
for the data set.
Specifying the DELETECATALOGENTRY command
requires proper RACF® facility
class authorization.
For more information about RACF,
see z/OS DFSMSdss Storage Administration.
For more information about protecting
keywords with RACF, see z/OS Security Server RACF Security Administrator's Guide.
Caution: Use extreme care with the DELETECATALOGENTRY
keyword. If any of the following conditions exist, a DELETE NOSCRATCH
operation is performed:
- Condition 1
- The target data set is cataloged
but it is not found on the
volume indicated by the catalog.
- Condition
2
- The target data set is cataloged but the volume indicated
by
the catalog does not exist on the restoring system and the restoring
system is not sharing catalogs with another system.
- Condition 3
- The target data set is cataloged
but the volume indicated by
the catalog is offline on the restoring system and the restoring system
is not sharing catalogs with another system.
- Condition
4
- The target data set is cataloged but the volume indicated
by
the catalog does not exist on the restoring system and the restoring
system is sharing catalogs with another system.
- Condition 5
- The target data set is cataloged but the volume
indicated by
the catalog is offline on the restoring system and the restoring system
is sharing catalogs with another system.
- Condition
6
- The target data set is a multivolume data set and some,
but
not all of the data, is no longer available. For this purpose, a multivolume
data set is one in which any part of the data set resides on more
than one volume. Examples include the following:
- A VSAM KSDS with the data- and index-components on one volume
and an alternate index (AIX®)
on another volume.
- A VSAM KSDS with the index-component on
a different volume than
the data-component.
- A key-range VSAM data set with the key-ranges
residing on more
than one volume.
For conditions
1 and 2, it is appropriate to use DELETECATALOGENTRY
to have DFSMSdss perform a DELETE NOSCRATCH operation for the catalog
entries.
Condition 1 typically occurs during a disaster recovery
when DFSMSdss
restores or imports the catalogs before recovering the data sets.
The target data set does not exist on the volumes indicated by the
catalog. The restore will not be successful unless you or DFSMSdss
delete the data set entries in the catalogs.
Condition 2 typically
occurs during a disaster recovery when DFSMSdss
restores the data sets to different volumes on a different operating
system. DFSMSdss catalogs the target data sets, but points to volumes
that do not exist on the target system. The restore will not be successful
unless you or DFSMSdss delete the data set entries in the catalogs.
If you specify DELETECATALOGENTRY for conditions 3 through 6, the
following damage is most likely to occur:
Note: - Use DELETECATALOGENTRY
only for logical data set restore.
- Do not use DELETECATALOGENTRY
to restore partially damaged volumes
or data sets.
- You cannot use DELETECATALOGENTRY to delete
catalog entries for
any of the following:
- User catalogs.
- Migrated data sets (VOLSER=MIGRAT).
- The SYSRES volume (VOLSER=******).
- A data set for which
the volser(s) in the catalog do not match
either the source volser(s) from the dump tape or the target volser(s)
specified with OUTDD/OUTDYNAM.
- If you are performing
a disaster recovery and the original volumes
are not available on the restoring system, you should also specify
the IMPORT parameter. If you do not specify the IMPORT keyword, the
system might prompt you to mount the volumes on which the target data
resides (as indicated by the catalog). Even if you reply ‘CANCEL’,
DFSMSdss attempts to perform a DELETE NOSCRATCH on the data set because
it does not recognize the ‘CANCEL’ request. Even if the DELETE
NOSCRATCH is successful, DFSMSdss might cause the following results:
- DFSMSdss might fail to allocate the volume
- DFSMSdss might issue the message ADR405E
- DFSMSdss might
not restore the data set
- DELETECATALOGENTRY will
not delete any catalog entry when the
phantom entry indicates a different type of data set than the source
data set.