For SAS/ACCESS Interface to Informix, SAS®9 uses the Informix ODBC Driver API to connect to Informix, and the connection options have been changed accordingly. The DATABASE option from SAS/ACCESS in SAS® 8 has been removed.
If you need to specify a database, set it in the odbc.ini file. For SERVER options, instead of specifying the server name as in SAS 8, specify an ODBC data source name. Optionally, you can use a user ID and password in conjunction with the SERVER= option.
In your odbc.ini file, the DATASOURCE name is the name that is found in the square brackets before all the details and the definition of the server/database.
Here is an example of an odbc.ini file used with SAS/ACCESS Interface to Informix with SAS 9:
[odbc15]
Driver=$INFORMIXDIR/lib/cli/iclis09b.so
Description=INFORMIX 3.3 64-BIT
Database=people
LogonID= <username>
pwd=<password>
Servername=online15
CursorBehavior=0
[odbc15] is a name that you choose to identify the data source.
'people' is the name of the OnLine or SE database that the data source accesses. The name can include the database server qualifier.
'online15' is the name of the database server on which the database that you want to access resides.
For example, in SAS® 8.2, the LIBNAME or PROC SQL Passthru code looked similar to one of the following:
- libname x user=dbuser password=dbpwd db=stores server=warehouse;
- proc sql; connect to informix (user=dbuser password=dbpwd db=stores server=warehouse);
Therefore, in SAS 9, your odbc.ini file should look similar to the following:
[storeds]
Driver=$INFORMIXDIR/lib/cli/iclis09b.so /* replace the $INFORMIXDIR with the path
where the driver is located */
Description=INFORMIX 3.3 64-BIT
Database=stores
LogonID= dbuser
pwd=dbpwd
Servername=warehouse
CursorBehavior=0
With SAS 9, the LIBNAME or PROC SQL Passthru code looks similar to the following:
libname x user=dbuser password=dbpwd server=storeds;
proc sql;
connect to informix (user=dbuser password=dbpwd server=storeds);
In some cases, the odbc.ini file is stored under $INFORMIXDIR/etc for public usage. However, an odbc.ini file can be stored under the WORK directory and the ODBCINI environment variable can point to it, as follows:
export ODBCINI=$YOUR_WORK_DIR/odbc.ini
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to Informix | 64-bit Enabled AIX | 9.1 TS1M0 | |
| 64-bit Enabled Solaris | 9.1 TS1M0 | |
| 64-bit Enabled HP-UX | 9.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.