Skip to main content

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql
Can you run the Informix preprocessor directly from the command line? This would tell you if Informix is set up correctly outside of Visual Studio.

What do you have this variable set to? It should contain a full path to the Informix installation folder. Open up your project properties page and on the Application tab click on the Environment button and try adding INFORMIXDIR to the list of environment variables for the project.

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql
What version of INFORMIX are you running?
Basically, this error indicates that COBSQL can't find the Informix's ESQLCOB Precompiler (esqlcob.exe) in "%INFORMIXDIR%\\lib".
Is the Informix's ESQLCOB Precompiler present - "%INFORMIXDIR%\\lib\\esqlcob.exe"?

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql
Ok this is the problem!
I thought that the problem was that it could not read the variable... but I was wrong! The variable content is absolutely correct, but the COBOL precompiler is missing.
Can I take the chance and ask you where I can find it? I'm very new ad this...
Thank you very much!

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql
The ESQLCOB precompiler is an Informix product and not a Micro Focus one. You should contact Informix about downloading and installing the correct product for your system.

I need to compile my COBOL file with Informix Embedded SQL, but preprocessor fails because of this error:

CSQL-F-012: INFORMIXDIR must be set for Informix Support

I'm using Visual Studio 2017. The variable is correctly set in Windows' environment variables. The preprocessor is "Oracle Pro*COBOL(COBSQL), with "COBSQLTYPE" directive set to INFORMIX-NEW.

How can I solve the problem?


#VisualStudio
#Informix
#VisualCOBOL
#esql
Thank you.
I have the C version, but cannot find anywhere the COBOL one