Data Type Definition
Keyword1
|
|||
---|---|---|---|
BIGINT2
|
|||
DATE 3
|
|||
DOUBLE2
|
|||
INTEGER2
|
|||
Fixed-length character
string. By default, sets the encoding to Unicode UTF-8. 4
|
|||
Fixed-length character
string. By default, sets the encoding to Unicode UTF-8. 4
|
|||
REAL2
|
|||
SMALLINT2
|
|||
TINYINT2
|
|||
1The CT_PRESERVE= connection argument, which controls how data types are mapped, can affect whether a data type can be defined. The values FORCE (default) and FORCE_COL_SIZE do not affect whether a data type can be defined. The values STRICT and SAFE can result in an error if the requested data type is not native to the data source, or the specified precision or scale is not within the data source range. | |||
2Do not apply date and time SAS formats to a numeric data type. For date and time values, use the DATE, TIME, or TIMESTAMP data types. | |||
3Because the values are stored as a double precision, floating-point number, you can use the values in arithmetic expressions. | |||
4UTF-8 is an MBCS encoding. Depending on the operating environment, UTF-8 characters are of varying width, from one to four bytes. The value for n, which is the maximum number of multibyte characters to store, is multiplied by the maximum length for the operating environment. Note that when you are transcoding, such as from UTF-8 to Wlatin2, the variable lengths (in bytes) might not be sufficient to hold the values, and the result is character data truncation. |