INQUIRE TRACEDEST

Retrieve information about tracing.

INQUIRE TRACEDEST

Read syntax diagramSkip visual syntax diagramINQUIRE TRACEDESTAUXSTATUS(cvda)CURAUXDS(data-area)GTFSTATUS(cvda)INTSTATUS(cvda)SWITCHSTATUS(cvda)TABLESIZE(data-area)

Conditions: NOTAUTH

This command is threadsafe.

For more information about the use of CVDAs, see CICS-value data areas (CVDAs).

Description

The INQUIRE TRACEDEST command tells you where CICS trace entries are currently being written. There are three possible destinations, which can be used in any combination: the CICS internal trace table, the auxiliary trace data set, and the MVS Generalized Trace Facility (GTF). The number and types of trace entries are controlled by switch settings that you can determine with the INQUIRE TRACEFLAG and INQUIRE TRACETYPE commands.

Options

AUXSTATUS(cvda)
returns a CVDA value indicating whether auxiliary tracing is active; that is, whether trace entries are being written to an auxiliary trace data set. CVDA values are:
AUXPAUSE
Auxiliary tracing is not currently active, but was earlier in the current execution of CICS. It was suspended with a SET TRACEDEST AUXPAUSE command (or the CEMT equivalent). The current auxiliary trace data set has been left open, and a subsequent SET TRACEDEST AUXSTART command will cause trace entries to be written immediately following those that were written before the AUXPAUSE request.
AUXSTART
Auxiliary tracing is active.
AUXSTOP
Auxiliary tracing is not active (the current trace data set, if any, is closed).
CURAUXDS(data-area)
returns the 1-character identifier of the current auxiliary trace data set, which can be ‘A’, ‘B’, or blank.

If your CICS system is initialized to allow auxiliary tracing, it will have either a single auxiliary trace data set, known as the ‘A’ data set, or two, ‘A’ and ‘B’. The current or active one receives trace entries when auxiliary tracing is turned on, and the other, if there are two, is a standby, for use when the current one becomes full (see the SWITCHSTATUS option). If there is no auxiliary trace data set, the CURAUXDS value is blank.

GTFSTATUS(cvda)
returns a CVDA value indicating whether GTF tracing is active; that is, whether CICS is directing trace entries to the MVS Generalized Trace Facility (GTF). CVDA values are:
GTFSTART
GTF tracing is active.
GTFSTOP
GTF tracing is not active.
Note: In order to record trace entries on GTF, CICS must be initialized with GTF support (in the GTFTR system initialization option), GTF tracing must be started (with a SET TRACEDEST GTFSTART command or equivalent), and GTF trace must be started in MVS with the TRACE=USR option. If either of the first two conditions is not met, GTFSTATUS is GTFSTOP. However, GTFSTATUS can be GTFSTART without the third condition; in this case, no entries are written to GTF, but there is no other error indication.
INTSTATUS(cvda)
returns a CVDA value indicating whether internal tracing is active; that is, whether trace entries are being written in the internal trace table. CVDA values are:
INTSTART
Internal tracing is on.
INTSTOP
Internal tracing is off.
Note: Exception trace entries are always written to the internal trace table, regardless of the INTSTATUS value.
SWITCHSTATUS(cvda)
returns a CVDA value indicating the action that CICS is to take when the active auxiliary trace data set fills. If there are two data sets, CICS can switch them automatically when this occurs. Switching involves closing the current active data set, opening the standby, and reversing the designation of which is active and standby. Without automatic switching, auxiliary tracing is stopped and cannot resume without a SET TRACEDEST command or the CEMT equivalent.
CVDA values are:
NOSWITCH
CICS takes no action.
SWITCHALL
CICS is to switch data sets every time the current one is full.
SWITCHNEXT
CICS is to switch data sets when the current one is full, but only once; thereafter NOSWITCH is in effect.
TABLESIZE(data-area)
returns a fullword binary field giving the size of the internal trace table in kilobytes.

Conditions

NOTAUTH
RESP2 values:
100
The user associated with the issuing task is not authorized to use this command.