Restriction: This directive is supported in native COBOL only.
Causes EXEC SQL statements in your program to be replaced with DB2 Universal Database API calls.
>>-.---.-.----DB2-.----------------------.-.--><
+-/-+ | | +-----.---.-----. | |
| | | +-,-+ | | |
| | v | | |
| +-(.-option=setting-.)-+ |
| | | |
| +-NO-option------+ |
+-NO-DB2--------------------------+
| option | One of the DB2 options listed in the topic DB2 Compiler Directive Options . |
| setting | The setting for the option |
| Default: | NODB2 |
| Phase: | Syntax check |
| $SET: | Initial |
To use this directive you need to have the DB2 UDB Software Development Kit (v6.1 or earlier) or DB2 UDB Application Development Client (v7.1 or later) installed, or a compile error will result.
For more information on using the DB2 directive, see the section DB2 Compiler Directive in the DB2 chapter of your Database Access book.