Opening a Cursor

To start the query, you OPEN the cursor.

Syntax

EXEC SQL
    OPEN cursorname
END-EXEC.

Example

EXEC SQL
    OPEN COBCUR1
END-EXEC.