To delete batch job history from a command line

At the Qshell command line, type

deljobhst -ckjrUvw [-d] [-u username] [-f fromdate] todate

Program Option Description
c

Delete Completed Job Entries Deletes completed jobs on the Completed Jobs form and deletes the associated job logs from the /EnvironmentDirectory/law/system/joblog directory in the IFS.

k Keep Entries, Do Not Delete Produces a report listing the job histories without deleting them.
j Delete Recurring Job Entries Deletes recurring job entries that have passed their stop dates.
r

Delete batch report files. Deletes all print files from the Print Manager.

deljobhst should run as QSECOFR on a profile with the authority to do this.

U Print usage and syntax. Prints the file usage and syntax for the selected job history.
v Verbose. Produces a report listing the verbose entries.
d Debug Messages and Verbose. Displays debug messages and other details while the deljobhst utility runs.
w Delete waiting job entries. Deletes the waiting job entries on the Waiting Jobs form.
u username Delete entries for username.
f fromdate

The date from which to start deleting job entries, in mmddyy format.

todate is the date to delete job entries up to, in mmddyy format; or curdate [-nbrdays].

Note: If you do not use the -f fromdate option, the system deletes all job histories up to todate.