Given a volume record indicating a DASD, the volume table of contents
(VTOC) for the volume drives the audit. AUDIT handles each Format
1 DSCB in the VTOC as follows:
If the DSCB indicates any of the following, AUDIT does not check
the data set further:
- SYSCTLG
- SYS1.VTOCIX
- SYS1.VVDS
- Model DSCB
- Multivolume data set
If the DSCB indicates a utility data set, AUDIT does not check
it further. If FIX is specified, AUDIT scratches and uncatalogs the
data set, overriding any expiration date, and issuing a message to
identify the data set.
For each remaining DSCB, AUDIT tries to read a corresponding data
set record from the MCDS.
When there is no data set record for the data set:
- If the data set (according to its name) is a backup version, but
no move record exists for that version, AUDIT reports *ERR
01.
- If there is no catalog entry, AUDIT reports condition 01.
- If a catalog entry exists, but indicates the data set is on a
primary volume other than the volume being
audited, AUDIT reports *ERR 05.
- If a catalog entry exists, but indicates the data set is migrated, AUDIT reports *ERR
10.
- If the data set is not supported by DFSMShsm (that is, not a VSAM
base cluster and not a non-VSAM data set), AUDIT reports condition 15.
When there is an MCDS data set record for
the data set:
- If the data set record indicates the data set has been migrated,
then recalled:
- If the recall volume is the same as the primary volume being audited,
but there is (now) no catalog entry, AUDIT reports *ERR
02.
- If a catalog entry exists, but indicates the data set is on a
primary volume different from the recall volume, AUDIT reports *ERR 07.
- If a catalog entry exists, but indicates the data set is on a
primary volume different from the one being audited, AUDIT reports *ERR 08.
- If a catalog entry exists, but indicates the data set is now migrated,
AUDIT reports *ERR 11.
- If the data set record indicates the data set is now migrated:
- If the data set record indicates a migration copy
on tape, but the TTOC records for the indicated migration volume do
not contain an entry for the data set, AUDIT reports *ERR
16.
- If the data set record indicates a migration copy
on tape, but the positioning information in the data set record does
not agree with the information in the TTOC, or the indicated TTOC
extension cannot be found, AUDIT reports *ERR 17.
When neither condition
1 nor
condition
2 holds:
- If there is (now) no catalog entry, AUDIT reports *ERR
03.
- If a catalog entry exists, indicating the data set is on the volume
being audited, AUDIT reports *ERR 18.
When you specify the AUDIT VOLUMES command to audit a migration
level 1 volume, be aware of the following:
- Data sets in a small-data-set-packing data set are not audited.
- Data sets that have been backed up with the BACKDS command and
temporarily reside on migration level 1 volumes are audited.