DB2 Version 10.1 for Linux, UNIX, and Windows

Compatibility features for migration

The DB2® database manager provides features that facilitate the migration of embedded SQL C applications from other database systems.

You can enable these compatibility features by setting the precompiler option COMPATIBILITY_MODE to ORA. For example, the following command enables the compatibility features when you compile the file named tbsel.sqc:
$ db2 PRECOMPILE tbsel.sqc BINDFILE COMPATIBILITY_MODE ORA
The following features are supported when the COMPATIBILITY_MODE ORA precompile option is specified: Additionally, the following features are supported for C or C++ embedded SQL applications even if you do not issue the PRECOMPILE command with the COMPATIBILITY_MODE ORA option: