Set environment variables in Windows

If you set the environment variables at the command line, you must reset them whenever you log in to your Windows™ environment. If you set them in the Windows registry, however, they are set automatically when you log in.

HCL OneDB™ ODBC Driver stores environment variables in the following location in the Windows registry:
\HKEY_CURRENT_USERS\Software\Informix\Environment

In a Windows environment you must use setnet32.exe, or a tool that updates the registry correctly, to set environment variables that HCL OneDB dynamic link libraries (DLLs), such as iclit09b.dll, use. The Setnet utility can only be used to set HCL OneDB environment variables.

You can use environment variables as required by your development environment. For example, the compiler needs to know where to find the include files. To specify the location of the include files, set the environment variable ONEDB_HOME (or some other environment variable) and then set the include path to ONEDB_HOME\incl\cli.

The options for setting environment variables have the following precedence:
  1. Setnet utility
  2. Command line
  3. Windows registry