Skip to main content

I have Net Express 5.1 project that has 6 COBOL programs and 1 of the 6 will not use the project build directives. My directives are: %FILENAME COBIDY(%TARGETDIR) WB3 WB CSI ANIM EDITOR(MF2) ENSUITE(3) INITCALL(ORASQL11.DLL) p(cobsql) COBSQLTYPE=ORACLE8  end-c P(cp) endp;

I get the following error where there's EXEC SQL statements: "COBCH0149S No SQL directives have been set" on the failing program.  Any suggestions on this would be greatly appreciated.  Thanks in advance.


#COBOLORACLEEXECSQLCOMPILE

I have Net Express 5.1 project that has 6 COBOL programs and 1 of the 6 will not use the project build directives. My directives are: %FILENAME COBIDY(%TARGETDIR) WB3 WB CSI ANIM EDITOR(MF2) ENSUITE(3) INITCALL(ORASQL11.DLL) p(cobsql) COBSQLTYPE=ORACLE8  end-c P(cp) endp;

I get the following error where there's EXEC SQL statements: "COBCH0149S No SQL directives have been set" on the failing program.  Any suggestions on this would be greatly appreciated.  Thanks in advance.


#COBOLORACLEEXECSQLCOMPILE

Found the actual error in an EXEC SQL  DECLARE xxx CURSOR statement.  The SQL inside was malformed.