CL Command Reference - PRTERRLOG
CL Command List > PRTERRLOG Reference
Description:
The Print Error Log (PRTERRLOG) command is used primarily for problem analysis tasks. It places a formatted printer file of the data in the machine error log in a spooled printer device file named QPCSMPRT or in a specified output file.
Restrictions:
. The following user profiles have private authorities to use the command:
¨C QPGMR
¨C QSYSOPR
¨C QSRV
¨C QSRVBAS
Examples:
Example 1: Printing Error Log Data
PRTERRLOG
This command gets the error data in the machine error log that occurred for all device types and puts it in a spooled file. The entire error log is printed and any hexadecimal data is in character format.
Example 2: Using the System Resource Manager Database
PRTERRLOG TYPE(*DEV) RSRCNAME(TAPE000001) PRTFMT(*HEX)
This command uses the system resource manager database to determine the device type, model, and serial number for the resource TAPE000001. The print request is based on that information. The report is put in the spooled file and contains all records that pertain to that device type, model, and serial number. Any hexadecimal data in the file is converted to hexadecimal format.
Example 3: Processing Error Log Entries
PRTERRLOG TYPE(*DEV) DEV(DISKLUD1) OUTPUT(*OUTFILE)
OUTFILE(MYLIB/MYDBD) OUTMBR(ELOG)
This command processes all the error log entries for the logical device named DISKLUD1. They are put in the file MYDBD, in the library MYLIB, and in the member ELOG. No spooled files are created.