Using the tracing facility

This section describes how to use the Server Option tracing facility.

StepsTo use the trace facility

  1. Call TDSETLOG and perform these steps for global or specific tracing:

    For this type of tracing

    Do this

    Global

    1. Set the trace flag to the TRACE ALL RPCS option.

    2. Set the flag for each desired kind of tracing to TRUE.

    NoteIf you want to enable tracing for the entire program, TDSETLOG must precede TDACCEPT.

    Specific

    1. Set the trace flag to the TRACE SPECIFIC RPCS option.

    2. Set the flag for each desired type of tracing to TRUE.

    Both global and specific

    1. Perform the previous steps for global and specific tracing.

    2. If you are developing under CICS and want to enable API tracing, give the auxiliary trace log a CICS ID.

    NoteYou can use TDINFLOG at any time to check the value of the settings.

  2. For each transaction for which you want trace activity, call TDSETSPT and perform these steps:

    1. Identify the transaction.

    2. Set the transaction trace flag to TRUE.

    3. Set the trace options flags for the types of tracing desired.

      NoteYou can enable tracing for up to eight transactions at a time.