Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

Sample program using supplied include files

A sample PL/I program is supplied illustrating the use of some common ODBC functions, including:

SQLAllocEnv
SQLAllocConnect
SQLAllocStmt
SQLBindCol
SQLBindParameter
SQLConnect
SQLDisconnect
SQLError
SQLExecDirect
SQLExecute
SQLFetch
SQLFreeConnect
SQLFreeEnv
SQLFreeStmt
SQLGetInfo
SQLNativeSQL
SQLPrepare
SQLTransact

Example Notes:

  1. Use the DEFAULT(BYVALUE) and LIMITS(EXTNAME(31)) options to compile ODBC programs.
  2. For Windows, a sample PL/I program is supplied in the ..\samples\ directory. Use the command file bldodbc.bat found in the same directory to compile and link the test program.
  3. The ODBC include files are available in the \include\ subdirectory.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)