CL Command Reference - STRJOBTRC
CL Command List > STRJOBTRC Reference
Description:
The Start Job Trace (STRJOBTRC) command starts the job tracing function to collect performance statistics for the specified job. It issues the following command:
STRTRC MAXSTG(maxstg) TRCFULL(*STOPTRC)
The MAXSTG value used is either the STRJOBTRC default or a specified value.
Once job tracing is started, a trace record is generated for every external (program) call and return, exception, message, and work station wait in the job. At least two, and usually more, trace records are generated for every I/O statement (open, close, read, write) in a high-level language program.
After the target programs have been run, the End Job Trace (ENDJOBTRC) command is used to turn tracing off, record the collected information in a database file, and optionally produce reports used to analyze the data. The Print Job Trace (PRTJOBTRC) command may also be used to print the same report at any time thereafter. Alternatively, specifying *DLT on the Data option prompt (DTAOPT parameter) of the End Trace (ENDTRC) command may be used to stop the job trace (turn it off without recording any collected data).
Examples:
STRJOBTRC MAXSTG(512)
This command starts collecting trace data for the current job. It uses a 512 kilobyte (KB) trace buffer.