Display Trace (DSPTRC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Trace (DSPTRC) command shows all of the traces that are currently defined in the programs specified in this command. The following trace information is shown:

Restriction: This command is valid only in debug mode.

Top

Parameters

Keyword Description Choices Notes
OUTPUT Output *, *PRINT Optional, Positional 1
PGM Program Single values: *DFTPGM, *ALL
Other values (up to 20 repetitions): Name
Optional
Top

Output (OUTPUT)

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

*
The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT
The output is printed with the job's spooled output.
Top

Program (PGM)

Specifies which programs in debug mode have their trace statements and associated program variables shown.

*DFTPGM
Only the default program has its trace statements shown.
*ALL
All the programs currently in debug mode have their trace statements shown.
name
Specify the names of up to 20 programs to have their trace statements shown. The programs specified must already be in debug mode.
Top

Examples

DSPTRC

This command shows all of the trace data statement ranges currently specified in the default program of this debugging session. Also displayed are the program variables (but not their values) that are associated with the trace data statements.

Top

Error messages

*ESCAPE Messages

CPF1999
Errors occurred on command.
Top