DBANSIWARN environment variable

Use the DBANSIWARN environment variable to indicate that you want to check for IBM® Informix® extensions to ANSI-standard SQL syntax.

Unlike most environment variables, you are not required to set
DBANSIWARN
to a value. You can set it to any value or to no value.
Read syntax diagramSkip visual syntax diagram
>>-setenv--DBANSIWARN------------------------------------------><

Running DB-Access with DBANSIWARN set is functionally equivalent to including the -ansi flag when you invoke DB-Access (or any IBM Informix product that recognizes the -ansi flag) from the command line. If you set DBANSIWARN before you run DB-Access, any syntax-extension warnings are displayed on the screen within the SQL menu.

At runtime, the DBANSIWARN environment variable causes the sixth character of the sqlwarn array in the SQL Communication Area (SQLCA) to be set to W when a statement is executed that is recognized as including any IBM Informix extension to the ANSI/ISO standard for SQL syntax.

For details on SQLCA, see the IBM Informix ESQL/C Programmer's Manual.

After you set DBANSIWARN, IBM Informix extension checking is automatic until you log out or unset DBANSIWARN. To turn off IBM Informix extension checking, you can disable DBANSIWARN with this command:
unsetenv DBANSIWARN