The ODBCINI environment variable stores the location of the ODBC.ini file.
You can view or set the value of the ODBCINI variable in the initialization file for the UNIX shell that you use. For example, on the Korn or Bourne shell, you can set the ODBCINI variable in the .profile file. On the C shell, you can set the variable in the .cshrc file.
To set the ODBCINI variable, add the following command to the shell initialization file:
.profile
ODBCINI=/<Path and file name of the odbc.ini file>
export ODBCINI
.cshrc
setenv ODBCINI /<Path and file name of the odbc.ini file>