Recent midrange listserv discussions have asked how to best retrieve information from OS/400’s history log files. Unfortunately, there is no API that allows instant access. One of the methods available to retrieve history file information is by listing them to an outfile where they can be read by a program. It is this method that is used in this issue’s utility by Carsten Flensburg.
Carsten’s utility lists all history files to an outfile, processes log file records to retrieve job performance information, then prints performance information, such as start and stop times, total CPU seconds, and so on, for each job. To keep processing time and file sizes manageable, the utility only processes history entries for the past three days. However, you can easily alter the limit in the source code.