No SQL directives set ,during compilation of a program.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Abbey Tiwari
Registered Member
Posts: 21
Joined: Mon Jan 18, 2016 8:16 am

No SQL directives set ,during compilation of a program.

Post by Abbey Tiwari »

Hi all,

I'm getting the error No SQL directives set ,during compilation of a program..can anyone help
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
Abbey Tiwari
Registered Member
Posts: 21
Joined: Mon Jan 18, 2016 8:16 am

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

Post by Abbey Tiwari »

It was a COBOL program. It was an error with correct compiler option at the time of compile. Thanks.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”