How to delete a VAULT from the DYNAM CATALOG which is no longer required ?
Steps: to remove VAULT "X"
1 – To find out which VAULT is defined in the DYNAM CATALOG run:
// EXEC DYNCAT
LISTCAT VCR
.
VAULT
-----
.
X DESCRIPTION= TEST
AUTOMATIC VERIFY=NO
SLOTS=NONE DEFINED
2 - to find all TAPE DSN's with VAULTLOC "X" run:
// EXEC DYNCAT
LISTCAT TAPE
.
DATA SET NAME – the.DSN.name
.
DEFAULT VAULT - A
VAULT SEQUENCE - A,X
.
VERSION ATTRIBUTES
VAULT LOCATION - X
VOLUMES - GL0001 (VTAPE)
3 - To remove VAULT "X" from the DSN VAULT SEQUENCE
AND remove VERSION 1 (GL0001) which is located
in VAULT LOCATION "X" from the DSN version List.
RUN a Job like this:
// JOB remove VAULT X from the DYNAM CATLOG
// EXEC DYNCAT
ALT the.DSN.name' VLTL=NO
ALT the.DSN.name' VLTL=A
DEL the.DSN.name' VER=1 PERMVLT=YES
VAULT VLTLOC=X DESC=''
/*
/&
The Delete Step (in this EXAMPLE) is NOT required if it was already altered before to be in a different VAULT LOCATION.
You can do the alter also online in screen
CAYD-2110 Data Set Detail
just overtype: Vault Locations(001-025): A,X
with: Vault Locations(001-025): NO
and then: Vault Locations(001-025): A
the DYNCAT VAULT VLTLOC=X DESC='' command will remove VAULT "X" from the DYNAM CATALOG
you will see the following when you run:
// EXEC DYNCAT
LISTCAT VCR
X DESCRIPTION=NONE DEFINED
AUTOMATIC VERIFY=NO
SLOTS=NONE DEFINED