Every column in a table has a name and a data type. The data type tells Aster how much physical storage to set aside for the column and the form in which the data is stored. This section includes information about Aster data types and data conversions.
SAS/ACCESS Interface to Aster does not directly support TIMETZ or INTERVAL types. Any columns using these types are read into SAS as character strings.
For information about Aster data types and to determine which data types are available for your version of Aster, see your Aster documentation.
Here are the data types that the Aster engine supports.
| CHAR(n) | VARCHAR(n) |
| BIGINT | DOUBLE | DOUBLE PRECISION |
| SMALLINT | REAL |
| INTEGER | DECIMAL | DEC | NUMERIC | NUM |
| DATE | TIMESTAMP |
| TIME |
This table shows the default formats that SAS/ACCESS Interface to Aster assigns to SAS variables when using the LIBNAME statement to read from an Aster table. These default formats are based on Aster column attributes.
|
Aster Data Type |
SAS Data Type |
Default SAS Format |
|---|---|---|
|
CHAR(n)1 |
character |
$w. |
|
VARCHAR(n)1 |
character |
$w. |
|
INTEGER |
numeric |
11. |
|
SMALLINT |
numeric |
6. |
|
BIGINT |
numeric |
20. |
|
DECIMAL(p,s) |
numeric |
w.d |
|
NUMERIC(p,s) |
numeric |
w.d |
|
REAL |
numeric |
none |
|
DOUBLE |
numeric |
none |
|
TIME |
numeric |
TIME8. |
|
DATE |
numeric |
DATE9. |
|
TIMESTAMP |
numeric |
DATETIME25.6 |
| 1 n in Aster data types is equivalent to w in SAS formats. | ||
This table shows the default Aster data types that SAS/ACCESS assigns to SAS variable formats during output operations when you use the LIBNAME statement.
|
SAS Variable Format |
Aster Data Type |
|---|---|
|
w.d |
DECIMAL(p,s) |
|
other numerics |
DOUBLE |
|
$w. |
VARCHAR(n)1 |
|
datetime formats |
TIMESTAMP |
|
date formats |
DATE |
|
time formats |
TIME |
| 1 n in Aster data types is equivalent to w in SAS formats. | |