Data Division

The following SQL statements are supported in the Data Division:

SQL DECLARE CURSOR
SQL INCLUDE
SQL declarations

For example:

EXEC SQL
    DECLARE cursorname CURSOR FOR SELECT statement
END_EXEC.
EXEC SQL INCLUDE SQLCA END-EXEC.
EXEC SQL INCLUDE SQLDA END-EXEC.
EXEC SQL INCLUDE filename END-EXEC.
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
... SQL declarations
EXEC SQL END DECLARE SECTION END-EXEC.