Deleting obsolete audit records with the MDEL Deletion utility

Use the MDEL Deletion utility to delete obsolete audit records that are no longer required.

During IQ Import, Usage Import and housekeeping utilities, audit records are collected. Over time, these obsolete records need to be deleted if they are no longer referenced. This utility deletes obsolete records from the following audit tables:
  • TLOGIQ - audit records from IQ Import.
  • TLOGUI - audit records from Usage Import.
  • TLOGAGGR - audit records from Aggregator jobstep.
  • TLOGLDEL - audit records from LDEL (System) Deletion.
  • TLOGPDEL - audit records from Physical Deletion.
  • TLOGUDEL - audit records from Usage Deletion.
In addition, this utility also deletes obsolete records from these two tables:
  • TCHANNEL_PATH - obsolete records from IQ Import.
  • TCONTROL_UNIT - obsolete records from IQ Import.

Running the MDEL Deletion Utility

To run the MDEL Deletion, use the job HZASMDEL, in the JCLLIB. This job is generated from the HZASCUST post-installation customization job.

TPARAM parameters

DSN=
Db2® location. Value assigned, as defined in job HZASCUST.
REPSCHEMA=
Repository qualifier. Name of qualifier is &REPZSCHM.
RETENTION=
Default is 24. Number of months prior to the current month for which audit records are kept. For a setting of RETENTION=0, audit records only for the current month are retained.
SID=
Default is ALLSIDS. System Identifier of system to be deleted.