Basic Program Flow for a CLI Application
Coding CLI applications involves writing C/C++ modules that contain DB2 UDB CLI functions. All of the available function calls are described in detail in the DB2 UDB Call Level Interface Guide and Reference. Coding ODBC applications is very similar to CLI because the function calls are essentially the same. The primary difference is in the way the application is linked. CLI applications are linked using the DB2 UDB supplied libraries and ODBC applications are linked with ODBC libraries. Some functions are supported by CLI and not by ODBC and vice-versa, but we will not be covering any of those functions here.
All CLI applications contain three main tasks: initialization, transaction processing, and termination. ...
Get DB2® Universal Database™ v8 Application Development Certification Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.