To enable mainframe server accounting information, call TDSETACT in your Server Option program. TDSETACT begins recording when your program issues a TDACCEPT and continues until the program issues TDFREE. Use TDINFACT to learn whether accounting recording is enabled and the name of the accounting log file.
See the appropriate Mainframe Connect Server Option Programmers Reference for complete descriptions and examples of these functions. PL/1 and COBOL versions of this guide are available.