Previous Topic: Using SQL in a COBOL Application ProgramNext Topic: Delimited, Continued, and Commented Statements


Embedding SQL Statements

Requirements

To embed an SQL statement in a COBOL program, you must:

Options

You can use SQL conventions to:

You can use a precompiler-directive statement to copy SQL statements in a module from the dictionary into the program.

Note: SQL statements cannot be embedded using the COBOL INCLUDE or BASIS statement.