SQL call level interface

DB2® UDB call level interface (CLI) is a callable Structured Query Language (SQL) programming interface that is supported in all DB2 environments except for DB2 Universal Database for z/OS® and DB2 Server for VSE and VM.

A callable SQL interface is a WinSock application programming interface (API) for database access that uses function calls to start dynamic SQL statements.

DB2 UDB CLI is an alternative to embedded dynamic SQL. The important difference between embedded dynamic SQL and DB2 UDB CLI is how the SQL statements are started. On the iSeries™ server, this interface is available to any of the ILE languages.

DB2 UDB CLI also provides full Level 1 Microsoft® Open Database Connectivity (ODBC) support, plus many Level 2 functions. For the most part, ODBC is a superset of the ANS and ISO SQL CLI standard.

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.