Open System Services ODBC/MX Client Driver for SQL/MX Release 3.1 (H06.23+, J06.12+)

Configuring Client Data Source Attributes for
ODBC/MX Connectivity
HP NonStop Open System Services ODBC/MX Client Driver for SQL/MX Release 3.1663857-001
2-10
Accessing the ODBCDSN file through environment
variable
Accessing the ODBCDSN file through
environment variable
You can specify the path from where the driver retrieves the ODBCDSN configuration
file by exporting an environment variable, DSN_PATH. The DSN_PATH variable must
contain the path of the file.The file name must be excluded from the specified path.
Accessing the ODBCDSN file through environment variable enables you to access the
file from a preferred location. Any error during the process causes the application to
exit and the driver does not search any other directories.
To export the DSN_PATH variable, run the following command:
export DSN_PATH=/config/mydsn
where /config/mydsn is the location of the ODBCDSN file excluding the file name.
Note.
To remove the entry of DSN_PATH, use the OSS UNSET command.
If the DSN_PATH is not defined, the driver retrieves ODBCDSN file in the
following order of priority:
1. The current working directory.
2. The default location, $SYSTEM.SYSTEM.