COBES0114 Statement only allowed in the Procedure Division.
An SQL statement such as EXEC SQL SELECT was coded in the Working-Storage Section.
Resolution:
This statement is not supported when coded in the Working-Storage Section. Move the statement to the Procedure Division and then recompile the program.