To compile an Open PL/I application for OCI, use the PL/I directive -SQL OCI rather than -SQL ODBC. To use SQL CHECK directive when compiling for OCI, the SQL DB directive setting must match the appropriate entry in the tnsnames.ora configuration file. For example:
-OPTSQL "DB=XE CHECK"