COBDB0115 Statement not allowed in the PROCEDURE DIVISION.
An SQL statement such as EXEC SQL DECLARE TABLE was coded in the Procedure Division. The preprocessor does not support the SQL statement coded into the Procedure Division.
Move the SQL statement into the Working-Storage Section and then recompile the program.
COBDB0100 - COBDB0115