Statement placement

In general, an application program can have Embedded SQL statements wherever COBOL statements are valid. However, Embedded SQL statements cannot be made until the WORKING-STORAGE SECTION of a program's DATA DIVISION has been defined. Thus, the FILE SECTION, for example, cannot contain Embedded SQL statements.