Start detail traces with automation


There are two ways to start detail traces with automation.

With the MainView AutoOPERATOR product

If you have the MainView AutoOPERATOR product installed, you can use the IMFEXEC IMFC command followed by the service name, optional parameters, and an identifier for the target CICS region. The following is an example of the syntax you can use: 

 IMFEXEC IMFC SET REQ=ATRAC DETTRC1 TYPE=DETAIL ELAP=5.0 TARGET=cicsid

With the MainView for CICS Management solution

This feature is available only with the MainView for CICS Management solution.

The MainView for CICS Management solution supports using MainView AutoOPERATOR to intercept messages for tasks that exceed performance thresholds and start detail traces against the running task. To do this, use the IMFC SET REQ=ATRAC command in a MainView AutoOPERATOR  EXEC. The syntax for the command is as follows:

IMFEXEC IMFC SET REQ=ATRAC TYPE=D CICSTASK=taskID  T=description . . .

where:                                                                      

taskid is the 1 to 5-byte task number to be traced.

The taskID is left-filled with zeros and generates the trace ID automatically. The generated trace IDs use the format adt12345.

The BBSAMP data set contains a sample Rule and EXEC that you can use to implementing this feature. For more information, see Sample-members-for-MainView-AutoOPERATOR-and-MainView-for-CICS

You can find additional information about starting and using detail traces for running tasks in the section Application-trace-views.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*