Requirements for using the esql command

Before you use esql, make sure that:
  • The file names of your Informix® ESQL/C source files have the .ec extension. You can also use the .ecp extension if you want the C preprocessor to run before the Informix® ESQL/C preprocessor.
  • You have set the environment variable INFORMIXDIR correctly and the PATH environment variable includes the path to the bin directory of the INFORMIXDIR directory ($INFORMIXDIR/bin on the UNIX operating system and %INFORMIXDIR%\bin in Windows environments).

    For a complete description of INFORMIXDIR, see the Informix® Guide to SQL: Reference or the Informix® Client Products Installation Guide for your operating system.