Tracing a client application

Tracing a client application requires setting certain parameters in the common section of the initialization file. Additionally, you must specify an APPLTRC DD statement in the JCL for the application job or in your TSO logon procedure.

Procedure

To obtain an application trace:

  1. Set APPLTRACE=1 and APPLTRACEFILENAME="DD:dd-name" in the common section of the Db2 ODBC initialization file as follows:
    [COMMON]
    APPLTRACE=1
    APPLTRACEFILENAME="DD:APPLTRC"
    dd-name is the name of a DD statement specified in the JCL for the application job or your TSO logon procedure.
  2. Specify an APPLTRC DD statement in the JCL for the application job or your TSO logon procedure.
    The DD statement references a preallocated z/OS® sequential data set with DCB attributes RECFM=VBA,LRECL=137, a z/OS UNIX environment HFS file to contain the client application trace, as shown in the following examples:
    //APPLTRC DD DISP=SHR,DSN=CLI.APPLTRC
    //APPLTRC DD PATH='/u/cli/appltrc'