CL Command Reference - ENDJOBTRC
CL Command List > ENDJOBTRC Reference
Description:
The End Job Trace (ENDJOBTRC) command turns off the job tracing function that was started by the Start Job Trace (STRJOBTRC) command, saves all collected trace records in a database file, and optionally produces reports that are used to analyze the data for information about performance. The Print Job Trace (PRTJOBTRC) command may also be used to produce reports from the same source data.
Examples:
Example 1: Stopping Job Tracing
ENDJOBTRC
This command stops tracing and saves the created trace records in QPFRDATA/QAPTTRCJ, member QAJOBTRC. No reports are produced.
Example 2: Producing a Report of Job Records
ENDJOBTRC LIB(MYLIB) RPTTYPE(*DETAIL)
This command stops job tracing, saves the created trace records in member QAJOBTRC of MYLIB/QAPTTRCJ, and produces a detail report. The use of a private library allows several users to trace jobs at the same time.