Example 3. Deleting history file entries by utilization

This example shows an IDIUTIL batch utility job to delete history file entries in the history files MY.HIST1 and MY.HIST2, until the history file utilization is less than 80 percent. The oldest entries are deleted first.
//UTILJOB2 JOB  ...
//RUNUTIL  EXEC PGM=IDIUTIL
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
FILES(MY.HIST1,MY.HIST2)
DELETE(UTILIZATION = 80)
/*

Note that the history file must be a PDSE in order to perform this function.