CL Command Reference - DMPUSRTRC

CL Command List > DMPUSRTRC Reference

Description:

The Dump User Trace Buffer (DMPUSRTRC) command formats trace records in the user trace buffer for the specified job. The formatted trace records can be written to a database file or to the stdout special file.

Trace records are written to a user trace buffer using the Qp0zUprintf, Qp0zDump, Qp0zDumpStack, and Qp0zDumpTargetStack APIs.


Examples:

Example 1: Dumping the Current User Trace Information

DMPUSRTRC

This command formats the user trace information for the current job and writes the formatted trace records to file QAP0ZDMP in library QTEMP.



Example 2: Dumping a Trace for a Specific Job

DMPUSRTRC JOB(004842/ACCT/WS6) OUTPUT(*STDOUT)

This command formats the user trace information for job WS6, which is associated with the user profile ACCT, and has the job number 004842, writing the formatted trace records to the stdout special file.