ESQL in COBOL Programs Mimer SQL supports ESQL for COBOL
following the COBOL-85 ANSI standard. SQL Statement Format The
following sections discuss the SQL statement format. SQL
statements are identified by the leading delimiter EXEC SQL and
terminated by SQL statements are treated exactly as ordinary
COBOL statements with regard to the use of an ending period to
mark the end of a COBOL sentence. Any valid COBOL punctuation
may be placed after the END-EXEC terminator. Examples:EXEC SQL
DELETE FROM countries END-EXEC. IF SQLSTATE NOT = "02000" THEN
EXEC SQL COMMIT END-EXEC ELSE EXEC SQL ROLLBACK END-EXEC.
Statements (including delimiters) may be written anywhere
between positions 8 and 72 inclusive. Line continuation rules
for SQL statements are the same as those for ordinary COBOL
statements. If a string constant within an SQL statement is
divided over several lines, the first non-blank character on the
continuation line must be a string delimiter. There is no
terminating string delimiter at the end of the lin