The following examples demonstrate several maintenance functions that you can perform on the History Jobs file using the CTMHCLN utility:
Delete jobs belonging to groups G1, G2, and G3 regardless of their retention criteria, and process all other jobs according to their retention criteria:
SELECT GROUP G1
SELECT GROUP G2
SELECT GROUP G3
Delete all jobs with odate from 010118 to 250118, and ignore all other jobs:
SELECT FROM 010118 TO 250118
IGNORE MEMBER *
Delete all jobs with prefix MYTAB and status ENDOK, and ignore all other jobs:
SELECT MEMBER MYTAB* STATUS ENDOK
IGNORE MEMBER *
Delete all jobs with prefix JOB regardless of their retention criteria, and process all other jobs according to their retention criteria. However, do this in Simulation mode, without making changes to the History Jobs file.