DELETE control statement

The DELETE control statement specifies qualifiers to select which fault entries should be deleted.

Figure 1. Syntax

1  DELETE (
2.1 + & or |
2.2.1  ABEND_DATE
2.2.2.1 >
2.2.2.1 <
2.2.2.1 =
2.2.2.1 yyyy/mm/dd
2.2.2.1 TODAY-days
2.2.1 
2.2.2.1 USER_ID
2.2.2.1 ABEND_CODE
2.2.2.1 JOB_NAME
2.2.2.1 CICS_TRANSACTION_ID
2.2.1 =
2.2.1 literal
2.1  UTILIZATION = percent
2.1  ALL
1 )

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.

Important: When using this control statement, the user ID under which IDIUTIL is running must have ALTER data set security access to the history files specified. XFACILIT access is not sufficient.

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.

Note: Deletion of a locked fault entry is only possible when overriding the default action using the IDIUTIL Delete user exit. For more information about IDIUTIL Delete user exit specification and usage, see EXITS control statement. For general information about the lock flag, and how to change its value prior to running the IDIUTIL batch utility, see Viewing fault entry information.

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.

Note: When using the UTILIZATION qualifier, IDIUTIL attempts to delete usage back to the specified percentage full at the time of running IDIUTIL. It is not a way of telling Fault Analyzer to maintain the usage at the specified percentage as new fault entries are created. PDSE history files are by default AUTO-managed and use the existing data set extents as much as possible, without allocating more extents.

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.