Previous Topic Next topic Print topic


DB2

Causes EXEC SQL statements in your program to be replaced with DB2 LUW API calls.
Note: This directive is supported for native COBOL only.

Syntax:

 >>-.---.-.----DB2-.----------------------.-.--><  
    +-/-+ |        |   +-----.---.-----.  | | 
          |        |   |     +-,-+     |  | | 
          |        |   v               |  | | 
          |        +-(.-option=setting-.)-+ | 
          |           |                |    | 
          |           +-NO-option------+    | 
          +-NO-DB2--------------------------+

Parameters:

option One of the DB2 options.
setting The setting for the option

Comment:

To avoid a compiler error with the DB2 directive you must have DB2 LUW Data Server Client installed.

Properties:

Default: NODB2
Phase: Syntax check
$SET: Initial
Previous Topic Next topic Print topic