Home | Previous Page | Next Page   Environment Variables > Environment Variables >

DBANSIWARN

Setting the DBANSIWARN environment variable indicates that you want to check for Informix extensions to ANSI-standard SQL syntax. Unlike most environment variables, you do not need 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 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, Informix extension checking is automatic until you log out or unset DBANSIWARN. To turn off Informix extension checking, you can disable DBANSIWARN with this command:

unsetenv DBANSIWARN
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]