DSNH013I E csectname LINE nnnn COL cc SQL STATEMENT FOUND OTHER THAN IN THE FIRST PROGRAM (OR MAIN PROGRAM)

Explanation

This message is for VS COBOL II only. If any SQL statement is found in the source after the first program in a BATCH COMPILE or the end of the main program of a nested program, this message is issued.

System action

The precompiler is terminated.

User response

Move up the SQL statement and corresponding host variable declaration to the main program or to the first program and resubmit the job.

Severity

8 (error)