Example 1. Listing history file entries
This example shows an IDIUTIL batch utility job
to list all history file entries that are contained in the history file MY.HIST1 and all entries in
history file MY.HIST2 that are for job names starting with TEMP, contain an abend code of S0C1, and
are for user ID P0001.
//UTILJOB1 JOB ...
//RUNUTIL EXEC PGM=IDIUTIL
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
* In the first history file, list all entries
FILES(MY.HIST1)
LISTHF
* In the second history file, only list those entries that match a specific criteria
FILES(MY.HIST2)
LISTHF(USER_ID=P0001 & ABEND_CODE=S0C1 &
JOB_NAME=TEMP*)
/*