Example Db2 ODBC code
You can view example Db2 ODBC code for a sample verification program DSN8O3VP and for a client application APD29 that calls a stored procedure.
The following sample applications are provided:
- DSN8O3VP, which is also available online in the DSN810.SDSNSAMP data set can be used to verify that your Db2 ODBC 3.0 installation is correct.
- APD29, a client application that calls a Db2 ODBC stored procedure (SPD29), includes very fundamental processing of query result sets (a query cursor opened in a stored procedure and return to client for fetching). For completeness, the CREATE TABLE, data INSERTs and CREATE PROCEDURE definition is provided.