Previous Topic Next topic Print topic


COBSQ0024 EXEC SQL statement found within COPY statement, COPY directive not set. May cause compile error on mainframe.

An EXEC SQL statement was found in a COPY statement. On the mainframe this could cause compilation errors unless you are using a preprocessor that expands copybooks before the source is passed to the DB2 precompiler.

If you are using a preprocessor, set the XDB(COPY) directive to remove the warning message. Otherwise, remove the EXEC SQL statement from the copy statement if you will be porting the code back to the mainframe.

Previous Topic Next topic Print topic