starting, USRP option, specifying the job name, event identifier, job name, specifying for GTF, trace types, starting the trace, trace, specifying the CLASS, CLASS, specifying, stopping the GTF" />
Starting the trace
To use the trace for problem determination, start the following:
- The GTF for your z/OS system
- The WebSphere MQ trace for each queue manager subsystem for which you want to collect data
Starting the GTF
When you start the GTF, specify the USRP option. You are prompted to enter a list of event identifiers (EIDs). The EIDs used by WebSphere MQ are:
- 5E9
- To collect information about control blocks on entry to WebSphere MQ
- 5EA
- To collect information about control blocks on exit from WebSphere MQ
Sometimes, if an error occurs that we cannot solve yourself, you might be asked by your IBM support center to supply other, internal, trace information for them to analyze. The additional type of trace is:
- 5EE
- To collect information internal to WebSphere MQ
We can also use the JOBNAMEP option, specifying the batch, CICS, IMS, or TSO job name, to limit the trace output to specific jobs. Figure 11 illustrates sample startup for the GTF, specifying the four EIDs, and a jobname. The lines shown in bold type like this are the commands that you enter at the console; the other lines are prompts and responses.
For more information about starting the GTF trace, see the MVS Diagnosis: Tools and Service Aids manual.
Figure 11. Example startup of GTF to use with the WebSphere MQ traceSTART GTFxx.yy £HASP100 GTFxx.yy ON STCINRDR £HASP373 GTFxx.yy STARTED *01 AHL100A SPECIFY TRACE OPTIONS R 01,TRACE=JOBNAMEP,USRP TRACE=JOBNAMEP,USRP IEE600I REPLY TO 01 IS;TRACE=JOBNAMEP,USRP *02 ALH101A SPECIFY TRACE EVENT KEYWORDS - JOBNAME=,USR= R 02,JOBNAME=(xxxxMSTR,xxxxCHIN,zzzzzzzz),USR=(5E9,5EA,5EE) JOBNAME=(xxxxMSTR,xxxxCHIN,zzzzzzzz),USR=(5E9,5EA,5EE) IEE600I REPLY TO 02 IS;JOBNAME=(xxxxMSTR,xxxxCHIN,zzzzzzzz),USR=(5E9,5EA,5EE) *03 ALH102A CONTINUE TRACE DEFINITION OR REPLY END R 03,END END IEE600I REPLY TO 03 IS;END AHL103I TRACE OPTIONS SELECTED-USR=(5E9,5EA,5EE) AHL103I JOBNAME=(xxxxMSTR,xxxxCHIN,zzzzzzzz) *04 AHL125A RESPECIFY TRACE OPTIONS OR REPLY U R 04,U U IEE600I REPLY TO 04 IS;U AHL031I GTF INITIALIZATION COMPLETE where: xx is the name of the GTF procedure to use, and yy is an identifier for this occurrence of GTF trace. xxxx is the name of the queue manager and zzzzzzzz is a batch job or CICS region name. Up to 5 job names can be listed.When using GTF, specify the primary job name (CHINIT, CICS, or batch) in addition to the queue manager name (xxxxMSTR).
Enabling the trace within WebSphere MQ
Use the START TRACE command, specifying type GLOBAL to start writing WebSphere MQ records to the GTF. To define the events that you want to produce trace data for, use one or more of the following classes:
CLASS Event traced 2 Record the MQI call and MQI parameters when a completion code other than MQRC_NONE is detected. 3 Record the MQI call and MQI parameters on entry to and exit from the queue manager. After the trace has started, we can display information about, alter the properties of, and stop, the trace with the following commands:
To use any of the trace commands, have one of the following:
- Authority to issue start and stop trace commands (trace authority)
- Authority to issue the display trace command (display authority)
Notes:
- The trace commands can also be entered through the initialization input data sets.
- The trace information produced will also include details of syncpoint flows - for example PREPARE and COMMIT.
For information about these commands, see the WebSphere MQ Script (MQSC) Command Reference manual.
Stopping the GTF
When you stop the GTF, specify the additional identifier (yy) used at startup. Figure 12 illustrates a sample stop command for the GTF. The commands shown in bold type like this are the commands that you enter at the console.