Previous Topic Next topic Print topic


COBSQ0117: Invalid in data division.

A SQL statement in question was not defined in the PROCEDURE DIVISION.

Some SQL statements such as UPDATE, DELETE, INSERT, and SELECT..INTO can only be coded in the PROCEDURE DIVISION. Move the statement in question to the PROCEDURE DIVISION and then recompile the program.

Previous Topic Next topic Print topic