[z/OS]

STOP TRACE

Use the MQSC command STOP TRACE to stop tracing.

Using MQSC commands

For information on how you use MQSC commands, see Performing local administration tasks using MQSC commands.

IBM® i UNIX and Linux® Windows z/OS®
      12CR

For an explanation of the symbols in the z/OS column, see Using commands on z/OS.

Synonym: There is no synonym for this command.

STOP TRACE

Read syntax diagramSkip visual syntax diagram STOP TRACE ( ACCTGCHINITGLOBALSTAT* ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)1destination blockconstraint blockCOMMENT(string)
Destination block
Read syntax diagramSkip visual syntax diagram DEST ( ,GTFRESSMFSRV )
Constraint block
Read syntax diagramSkip visual syntax diagramCLASS(*)CLASS(,integerinteger:integer)RMID(*)RMID(,integer)TNO(*)TNO(,integer)USERID(*)USERID(,string)
Notes:
  • 1 Valid only on z/OS when the queue manager is a member of a queue-sharing group.

Parameter descriptions for STOP TRACE

Each option that you use limits the effect of the command to active traces that were started using the same option, either explicitly or by default, with exactly the same parameter values.

You must specify a trace type or an asterisk. STOP TRACE(*) stops all active traces.

The trace types are:
ACCTG
Accounting data (the synonym is A)
Note: Accounting data can be lost if the accounting trace is started or stopped while applications are running. For information about the conditions that must be satisfied for successful collection of accounting data, see Using IBM MQ trace.
CHINIT
Service data from the channel initiator. The synonym is CHI or DQM.

If the only trace running on the CHINIT is the one started automatically when the CHINIT was started, that tracing can be stopped only by explicitly stating the TNO for the default CHINIT trace (0). For example: STOP TRACE(CHINIT) TNO(0)

GLOBAL
Service data from the entire queue manager except for the channel initiator. The synonym is G.
STAT
Statistical data (the synonym is S)
*
All active traces
CMDSCOPE
This parameter specifies how the command is executed when the queue manager is a member of a queue-sharing group.
CMDSCOPE cannot be used for commands issued from the first initialization input data set CSQINP1.
' '
The command is executed on the queue manager on which it was entered. This is the default value.
qmgr-name
The command is executed on the queue manager you specify, providing the queue manager is active within the queue-sharing group.

You can specify a queue manager name, other than the queue manager on which the command was entered, only if you are using a queue-sharing group environment and if the command server is enabled.

COMMENT( string )
Specifies a comment that is reproduced in the trace output record (except in the resident trace tables), and can be used to record why the command was issued.

string is any character string. It must be enclosed in single quotation marks if it includes a blank, comma, or special character.

Destination block

DEST
Limits the action to traces started for particular destinations. More than one value can be specified, but do not use the same value twice. If no value is specified, the list is not limited.
Possible values and their meanings are:
GTF
The Generalized Trace Facility
RES
A wrap-around table residing in the ECSA
SMF
The System Management Facility
SRV
A serviceability routine designed for problem diagnosis

Constraint block

CLASS( integer )
Limits the command to traces started for particular classes. See the START TRACE command for a list of allowed classes. A range of classes can be specified as m:n (for example, CLASS(01:03)). You cannot specify a class if you did not specify a trace type.

The default is CLASS(*), which does not limit the command.

RMID( integer )
Limits the command to traces started for particular resource managers. See the START TRACE command for a list of allowed resource manager identifiers.

Do not use this option with the STAT, ACCTG, or CHINIT trace type.

The default is RMID(*), which does not limit the command.

TNO( integer )
Limits the command to particular traces, identified by their trace number (0 to 32). Up to 8 trace numbers can be used. If more than one number is used, only one value for USERID can be used.

0 is the trace that the channel initiator can start automatically. Traces 1 to 32 are those for queue manager or the channel initiator that can be started automatically by the queue manager, or manually, using the START TRACE command.

The default is TNO(*), which applies the command to all active traces with numbers 1 to 32, but not to the 0 trace. You can stop trace number 0 only be specifying it explicitly.

USERID( string )
Limits the action of the STOP TRACE to traces started for particular user ID. Up to 8 user IDs can be used. If more than one user ID is used, only one value can be used for TNO. Do not use this option with the STAT, ACCTG, or CHINIT trace type.

The default is USERID(*), which does not limit the command.