Controlling trace for IBM MQ Automation Classes for ActiveX
The IBM MQ Automation Classes for ActiveX (MQAX) includes a trace facility to help the service organization identify what is happening when we have a problem.
It shows the paths taken when you run your MQAX script. Unless we have a problem, run with tracing disabled to avoid any unnecessary use of system resources.
There are three environment variables that you set to control trace:- OMQ_TRACE
- OMQ_TRACE_PATH
- OMQ_TRACE_LEVEL
- Click Start
- Click Control Panel
- Double-click System
- Click Advanced
- Click Environment
- In the section titled User variables for (username), click New
- Enter the variable name and a valid value in the appropriate fields and click OK
- Click OK to close the Environment Variables window
- Click OK to close the System Properties window
- Close the Control Panel window
When deciding where you want the trace files written, ensure that we have sufficient authority to write to, as well as read from, the disk.
With tracing enabled, it slows down the running of the MQAX, but it does not affect the performance of your ActiveX or IBM MQ environments. When you no longer need a trace file, we can delete it.
We cannot change the status of the OMQ_TRACE variable while MQAX is running.
Trace file name and directory
The trace file name takes the form OMQnnnnn.trc, where nnnnn is the ID of the ActiveX process running at the time.
|