Use trace with IBM MQ client on IBM i
On IBM i, there is no Control Language (CL) command to capture the trace when using a stand-alone 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 typeTo end the traceCALL 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 we 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. We 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 we 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
- To end the trace:
/QSYS.LIB/QMQM.LIB/ENDMQTRC.PGM [-e] [-a]where:
For more details see the endmqtrc endmqtrc command
- To display a formatted trace file:
/QSYS.LIB/QMQM.LIB/DSPMQTRC.pgm
To examine First Failure Support Technology ( FFST ) files, see FFST: IBM MQ for IBM i.
Parent topic: Use trace
Related concepts
- Use trace on UNIX and Linux systems
- Use trace for problem determination on z/OS
- Tracing TLS: runmqakm, strmqiqm, and runmqckm functions
- Tracing additional IBM MQ Java components
Related reference