Page 1 of 1

No SQL directives set ,during compilation of a program.

Posted: Tue May 16, 2023 8:42 pm
by Abbey Tiwari
Hi all,

I'm getting the error No SQL directives set ,during compilation of a program..can anyone help

Re: No SQL directives set ,during compilation of a program.

Posted: Tue May 16, 2023 8:48 pm
by Robert Sample
Assembler program? COBOL program? PL/I program? Some other type of program?

The message means that you did NOT tell the compiler that you have EXEC SQL statements in your code, and hence the compiler did not prepare your program correctly. Go back and set the SQL directive in the compile JCL (or program source) and compile it again.

Re: No SQL directives set ,during compilation of a program.

Posted: Mon Jul 17, 2023 10:41 am
by Abbey Tiwari
It was a COBOL program. It was an error with correct compiler option at the time of compile. Thanks.