DB2 coprocessor

When you use the DB2 coprocessor, the compiler handles your source program that contains embedded SQL statements without your having to use a separate precompiler.

To use the DB2 coprocessor, specify the SQL compiler option.

When the compiler encounters SQL statements in the source program, it interfaces with the DB2 coprocessor. All text between EXEC SQL and END-EXEC statements is passed to the coprocessor. The coprocessor takes appropriate actions for the SQL statements and indicates to the compiler which native COBOL statements to generate for them.

Certain restrictions on the use of COBOL language that apply with the DB2 precompiler do not apply when you use the DB2 coprocessor:

related tasks  
Compiling with the SQL option
  

related references  
SQL
  
SRCFORMAT