Using the AUDIT DATASETNAMES and AUDIT LEVELS commands

To get an audit of specific data sets, specify the AUDIT DATASETNAMES parameter. To get an audit of all data sets having the same set of initial characters of their data set names, specify the AUDIT LEVELS parameter.

When you specify either of these options, AUDIT tries to read MCDS data set (D) records, if any, and catalog entries, if any, corresponding to the data sets or range of data sets you specify.

If there is no data set record in the MCDS for a specified data set:

When there is an MCDS data set record:

  1. If the data set record indicates a migration copy on tape, but the TTOC (T) records for the indicated migration volume do not contain an entry for the data set, AUDIT reports *ERR 16.
  2. 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.

If the specified data set is not supported by DFSMShsm (that is, not a VSAM base cluster and not a non-VSAM data set), AUDIT reports *ERR 15.