3. Embedded SQL for COBOL : Embedded SQL Statement Syntax for COBOL : Line Continuation
 
Share this page                  
Line Continuation
You can continue embedded SQL statements over multiple lines. There is no continuation symbol for continuing embedded SQL statements, except in the case of continued string literals (see String Literals in this chapter.). Statements extend from the exec sql or exec frs keyword to the end-exec terminator. You can continue an embedded SQL statement onto a new line only at a word boundary, with the exception of string literals, which you can continue in a word. However, you cannot split the keyword pairs, exec sql and exec frs, between lines. Similarly, the end-exec terminator must be on a single line. You can use blank lines between continued lines.