Coding SQL statements in COBOL applications

There are unique application and coding requirements for embedding SQL statements in a COBOL program. In this topic, requirements for host structures and host variables are defined.

The IBM® i products support more than one COBOL compiler. The IBM DB2® Query Manager and SQL Development Kit for i licensed program only supports the OPM COBOL and ILE COBOL programming languages.

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.