Trace control function
There is one XPI trace control function. This is the DFHTRPTX call TRACE_PUT.
DFHTRPTX calls cannot be used in any exit program invoked from any global
user exit point in the:
vDispatcher domain
vDump domain
vMonitor domain
vStatistics domain
vTransient data program.
The TRACE_PUT call
TRACE_PUT writes a trace entry to the active trace destinations. Youshould only
make a TRACE_PUT call when UEPTRON indicates that tracing is active for the
function containing the exit program (see UEPTRON in DFHUEPAR).You may
prefer to make “exception” trace entries, in case of serious errors, without testing
UEPTRON.
If you use TRACE_PUT to write exception trace entries, you should identify these
so they are highlighted as exception trace entries by the trace formatting utility
program. Toidentify an exception trace entry, enter the literal string ‘USEREXC’ in
the DATA1block descriptor field on the DFHTRPTX call. See the
CICS Problem
Determination Guide
for details of how an exception trace entry is interpreted.
TRACE_PUT
DFHTRPTX [CALL,]
[CLEAR,]
[IN,
FUNCTION(TRACE_PUT),
POINT_ID(literalconst | name2 | (Rn)),
[DATA1(block-descriptor),]
[DATA2(block-descriptor),]
[DATA3(block-descriptor),]
[DATA4(block-descriptor),]
[DATA5(block-descriptor),]
[DATA6(block-descriptor),]
[DATA7(block-descriptor),]
[RETURN_ADDR(expression | name4 | (Ra)),]]
[OUT,
RESPONSE(name1 | *)]
DATA
n
(block-descriptor)
specifies up to seven areas to be included in the data section of the trace entry.
For a description of valid block-descriptors, see page 298. If you specify any
given DATA
n
, then DATA1through DATA(
n
−1) must be coded before DATA
n
.
The specified DATAitems are printed in the trace output in the order specified,
that is, in order of DATA1through DATA
n
. A2-byte length field is printed before
the data field itself. The maximum total length of the data that can be traced in
one call is 4040 – (2 *
n
) bytes, where
n
is the number of data fields that you
specify.
POINT_ID(literalconst|name2|(Rn))
specifies the trace entries made as a result of this request. Every TRACE_PUT

trace control function

Chapter3. The user exit programming interface (XPI) 369