An EXEC SQL flag was found before the previous END-EXEC flag. Explanation: The previous SQL statement was missing its END-EXEC flag. Every COBOL SQL statement must be preceded by EXEC SQL and be terminated by END-EXEC. A period may optionally follow the 'END-EXEC' flag. User Action: Add an END-EXEC flag to the previous SQL statement. Make sure that the END-EXEC flag has no embedded spaces, and that there is no COBOL terminator period before the END-EXEC flag.