ODBC on UNIX
works a bit differently. The ODBC driver manager and ODBC drivers
on the PC are available by default, so you need only plug them in.
Because these components are not generally available on UNIX, you
must instead work with third-party vendors to obtain them.
When you submit
SAS/ACCESS
Interface to ODBC code, SAS looks first for an ODBC driver manager.
It checks the directories that are listed in such environment variables
settings as LD_LIBRARY_PATH, LIBPATH, or SHLIB_PATH, depending on
your UNIX platform. It uses the first ODBC driver manager that it
finds.
The ODBC driver manager
then checks .INI files—either a stand-alone ODBC.INI file,
or a combination of ODBC.INI and ODBCINST.INI files—for the
DSNs that you specified in your code. To make sure that the intended
.INI files are referenced, you can use such environment variables
settings as ODBCINI or ODBCSYSINI, depending on how your .INI files
are set up. You can set up global .INI files for all your users,
or you can set up .INI files for single users or groups of users.
This is similar to using the ODBC Data Source Administrator to create
either SYSTEM or USER DSNs for PC platforms. One or more .INI files
include a section for each DSN, and each section includes specific
connection information for each data source from which you ultimately
want to enable access to data. Some ODBC driver vendors provide tools
with which you can build one or more of your .INI files. However,
editing a sample generic .INI file that is provided with the ODBC
driver is often done manually.
Most database vendors
(such as Sybase, Oracle, or DB2) include ODBC drivers for UNIX platforms.
To use
SAS/ACCESS Interface to ODBC, pair an ODBC driver manager that
is based in UNIX with your ODBC driver that is also based in UNIX..
Freeware ODBC driver managers for UNIX such as unixODBC are generally
available for download. Another alternative is to obtain the required
ODBC client components for UNIX platforms from third-party vendors
who market both ODBC drivers for various databases and an ODBC driver
manager that works with these drivers. To use
SAS/ACCESS Interface
to ODBC, you can select any ODBC client solution that you want as
long as it is ODBC-compliant.