Purpose
Terminates an SQL statement in an embedded SQL client COBOL application program.
Invocation
Nonexecutable preprocessor declaration.
Embedded SQL only.
Syntax
END-EXEC [.]
ANSI Compliance
END-EXEC is ANSI/ISO SQL:2011-compliant.
Authorization
None.
Rules for Using END-EXEC
- END-EXEC is mandatory for all SQL statements embedded in a client COBOL application program.
The statement terminator for SQL embedded within C and PL/I applications is the SEMICOLON character.
- You cannot use END-EXEC with interactive SQL statements.
Related Topics
For more information about END-EXEC, see EXEC SQL Statement Prefix.