Display the list of history log files

Use the Display Object Description (DSPOBJD) command to view a list of history log files.

The history log files are copies of all the messages that are sent to the message queue QHST. When the size of the current history log exceeds its size limitation, the system creates a new file. The files reside in library QSYS and begin with the letters QHST, followed by a number. The format that is used is QHSTyydddn. The yydddn represents the date of the first message in the file, where yy is the year and ddd is the sequential number of the day of the year (for example, February 1 would be 032). The n that is appended at the end is a sequence number; this sequence number is only incremented when more than one QHST file is generated within one day.

To display the list of history logs and to view its contents:

  1. Type WRKF QHST* from any command line.
  2. Select option 5 to display the contents of the file.
Note: The system copies the messages in the QHST message queue to the history log files and then removes them from the QHST message queue. The DSPLOG command uses the history log files to show the messages sent to the QHST message queue.