AppendAPIName CLI/ODBC and IBM data server driver configuration keyword

Appends the CLI/ODBC function name which generated an error to the error message text.

db2cli.ini keyword syntax:
AppendAPIName = 0 | 1
IBM® data server driver configuration file (db2dsdriver.cfg) syntax:
<parameter name="AppendAPIName" value="0 | 1"/>
Attention: The IBM data server driver configuration file (db2dsdriver.cfg) syntax is available in Db2 11.5.4 and later.
Default setting:
Do NOT display CLI function name.
Usage notes:
 

The CLI function (API) name that generated an error is appended to the error message retrieved using SQLGetDiagRec() or SQLError(). The function name is enclosed in curly braces { }.

For example,
 
[IBM][CLI Driver]" CLIxxxx: < text >
SQLSTATE=XXXXX {SQLGetData}"
  • 0 = do NOT append CLI function name (default)
  • 1 = append the CLI function name

This keyword is only useful for debugging.