Using trace on IBM MQ client on IBM i
On IBM® i, there is no Control Language (CL) command to capture the trace when using a standalone IBM MQ MQI client. STRMQTRC and ENDMQTRC programs can be used to enable and disable the trace.
Example for start trace:
CALL PGM(QMQM/STRMQTRC) PARM('-e' '-t' 'all' '-t' 'detail')
Where -e option requests early tracing of all the process -t option for trace type
To end the trace
CALL PGM(QMQM/ENDMQTRC) PARM('-e')
- Optional parameters:
- -t
TraceType
- The points to trace and the amount of trace detail to record. By default all trace points are enabled and a default-detail trace is generated.
- -x
TraceType
- The points not to trace. By default all trace points are enabled and a default-detail trace is generated. The
TraceType
values you can specify are the same as the values listed for the -t flag in Table 1. - -s
- Reports the tracing options that are currently in effect. You must use this parameter on its own with no other parameters.
- -l
MaxSize
- The maximum size of a trace file ( AMQppppp.qq.TRC ) in megabytes (MB). For example, if you specify a
MaxSize
of 1, the size of the trace is limited to 1 MB. - -e
- Requests early tracing of all processes
For more details see the strmqtrc command
- -t
- To end the trace:
where:/QSYS.LIB/QMQM.LIB/ENDMQTRC.PGM [-e] [-a]
- -e
- Ends early tracing of all processes.
- -a
- Ends all tracing.
For more details see the endmqtrc endmqtrc command
- To display a formatted trace file:
/QSYS.LIB/QMQM.LIB/DSPMQTRC.pgm
To examine FFST files, see the First Failure Support Technology ( FFST ) for IBM MQ for IBM i.