DELETE control statement
The DELETE control statement specifies qualifiers to select which fault entries should be deleted.
Description: DELETE(ALL)
The DELETE(ALL) control statement is used to delete all fault entries in the history files that were specified unconditionally in a prior FILES control statement. The fault entries are deleted regardless of any lock flag setting and no user exit is called.
Run IDIUTIL with DELETE(ALL) against a history file before the history file itself is deleted to ensure that all associated dump data sets (such as RFR or XDUMP) are also deleted. If this is not done, orphaned dump data sets might be left allocated if the history file is deleted.
Description: Other than DELETE(ALL)
With the exception of DELETE(ALL), the IDIUTIL DELETE function should only be used for PDS history files. PDSE history files (which we recommend are used) should use automatic space management. For information about automatic space management, see AUTO-managed PDSE history files.
The UTILIZATION qualifier can be used to delete entries, starting with the oldest entry, until the specified percentage of utilization is reached. This qualifier is only available for PDSE history files. UTILIZATION cannot be qualified with extra & or | operators, it must be the only operator in the DELETE statement when used. It can be preceded or followed by any other DELETE statements.
The remaining qualifiers follow the same rules as the LISTHF qualifiers above.
The IDIUTIL Delete user exit can be used with the DELETE control statement to further select the history file entries that should be deleted. See IDIUTIL Delete user exit.
Examples of using the DELETE control statement are provided in Example 3. Deleting history file entries by date and Example 4. Deleting history file entries by utilization.