Using the separate Db2 precompiler

To run a COBOL program that has SQL statements, you can use the separate Db2® precompiler to convert the SQL statements to COBOL statements, and then compile and link the program to create the executable module.

About this task

However, using the Db2 precompiler that is integrated with Enterprise COBOL is recommended, since the separate Db2 precompiler is no longer being enhanced by IBM®. In particular, the separate Db2 precompiler has not been updated for newer COBOL language such as floating comment delimiters, JSON GENERATE and JSON PARSE, and compiler directives. To use the latest features of the COBOL compiler, use the integrated Db2 coprocessor.
Note: The Db2 interface used by the precompiler is 31-bit. The precompiler output cannot be compiled with LP(64). You must use LP(32) for Db2 precompiled programs.

Related concepts  
Db2 coprocessor