DB2 Version 9.7 for Linux, UNIX, and Windows

ClientApplName CLI/ODBC configuration keyword

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

db2cli.ini keyword syntax:
ClientApplName = application name
Default setting:
None
Applicable when:
Connected to a database using DB2 Connect or DB2 for Linux, UNIX, and Windows database products.
Equivalent environment or connection attribute:
SQL_ATTR_INFO_APPLNAME
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 32 characters.
  • In DB2 Version 9.7 Fix Pack 6 and later, CLI applications can set the ClientApplName 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 (.).