DB2 Version 9.7 for Linux, UNIX, and Windows

ClientAcctStr CLI/ODBC configuration keyword

Allows a CLI application to set the client accounting string that is sent to a database through DB2 Connect™ or DB2® database products. Applications that do not set the accounting string can use this keyword to provide the client accounting string information.

db2cli.ini keyword syntax:
ClientAcctStr = accounting string
Default setting:
None
Applicable when:
Connected to a database using DB2 Connect or DB2 for Linux, UNIX, and Windows
Equivalent environment or connection attribute:
SQL_ATTR_INFO_ACCTSTR
Usage notes:
 
Note the following conditions:
  • Some servers might not be able to handle the entire length of the value and might truncate it.
  • DB2 for z/OS® and OS/390® servers support a length of up to 200 characters.
  • In DB2 Version 9.7 Fix Pack 6 and later, CLI applications can set the ClientAcctStr keyword on DB2 for i V6R1 and later servers. DB2 for i servers support a length of up to 255 characters.
  • To ensure that the data is converted correctly when transmitted to a host system, use only the characters A - Z and 0 -9 and the underscore (_) or period (.).