![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/ACCESS Software for Relational Databases: Reference |
This section describes how the LIBNAME statement and the SQL Procedure Pass-Through Facility treat each of these types during input operations.
| Character Data |
| Numeric Data |
| Abstract Data |
| NULL and Default Values |
| LIBNAME Statement Data Conversions |
| Informix Column Type | Default SAS Format |
|---|---|
| CHAR(n) | $n |
| DATE | DATE9. |
| DATETIME** | DATETIME24.5 |
| DECIMAL | none |
| DOUBLE PRECISION | none |
| FLOAT | none |
| INTEGER | none |
| INTERVAL | $n |
| MONEY | none |
| NCHAR(n) | $n NLS support required |
| NUMERIC | none |
| NVARCHAR(m,n)* | $m NLS support required |
| REAL | none |
| SERIAL | none |
| SMALLFLOAT | none |
| SMALLINT | none |
| TEXT* | $n |
| VARCHAR(m,n)* | $m |
| *Only supported by
Informix-Online databases
**If the Informix field qualifier specifies either HOUR, MINUTE, SECOND, or FRACTION as the largest unit, the value is converted to a SAS TIME value. All others, such as YEAR, MONTH, or DAY, are converted to a SAS DATETIME value. |
|
The following table shows the default Informix data types that the LIBNAME statement applies to SAS variable formats during output operations.
| SAS Variable Format | Informix Data Type | |
|---|---|---|
| $w. |
CHAR(w). | |
| w. with SAS format name of NULL | FLOAT | |
| w.d with SAS format name of NULL | FLOAT | |
| all other numerics | FLOAT | |
| datetimew.d |
DATETIME YEAR TO FRACTION(5) | |
| datew. | DATE | |
| time. | DATETIME HOUR TO FRACTION(5) | |
| SQL Procedure Pass-Through Facility Data Conversions |
The SQL Procedure Pass-Through Facility uses the same default conversion formats as the LIBNAME statement. See LIBNAME Statement Data Conversions for the conversion tables.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.