TRS allows you to record accounting information. This section describes how to record accounting at TRS. Mainframe-based accounting is explained in the Mainframe Connect Server Option documentation.
The TRS accounting facility records the following information:
The name by which TRS is known.
The RPC the named client calls.
The connection name or mainframe name relevant to this RPC.
The date and time that TRS sent the request to the transaction processing region.
The time elapsed since the request was sent.
The time elapsed count starts when TRS receives the request and continues until the final result row is sent to the client. Some applications, such as Data Workbench, read a few rows at a time, and then request more rows as the user requests them to be displayed, allowing the user to read the results. This time is included in the total duration.
The total number of bytes sent and received with this RPC.
The total number of Sybase TDS packets sent and received with this RPC. A packet is 512 bytes or less.
To turn on accounting before TRS starts running, set the appropriate properties in the TRS configuration file. See the sections describing the Accounting and AccountFile configuration properties in Chapter 3, “Configuring a TRS.”
You can also use DirectConnect Manager to enable and disable accounting
while TRS is running.