Support may request SQL traces to analyze specific query behaviors or performance issues within the Multi-User Facility (MUF).
Tracing is managed through the batch utility DBUTLTY and output is directed to the PXX or to one of the PXXxxx## Spool files if using the SYSOUT MUF Startup Option.
Technical troubleshooting of SQL queries requires high-granularity diagnostic data typically suppressed during standard operations to minimize overhead on the Multi-User Facility (MUF). Specific trace classes must be enabled dynamically to capture internal execution paths, expressions, or error states.
COMM OPTION=ALTER,TRACE=NONE <--turn off any existing activated traces.
COMM OPTION=CLRPXX - or - <-- clears the existing PXX SYSOUT or PXX dump.
COMM OPTION=CLRSQL <-- closes the current file and opens a new Spool file if using SYSOUT option.
COMM OPTION=ALTER,TRACE=<trace_class>,JOBNAME=<jobname> <-- turn on trace for specific jobname. Use multiple statements for additional traces.
COMM OPTION=ALTER,TRACE=NONE <--turn off any existing activated traces.
REPORT AREA=PXX,DUMPS=TRACE