13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

820 Data Types and the <strong>SAS</strong>_PUT( ) Function 4 Chapter 28Table 28.3Teradata Data Types Supported by the <strong>SAS</strong>_PUT() FunctionType of DataNumericDate and timeData TypeBYTEINTSMALLINTINTEGERBIGINT 1DECIMAL (ANSI NUMERIC) 1FLOAT (ANSI REAL or DOUBLE PRECISION)DATETIMETIMESTAMPCharacter 2, 3 CHARACTER 4VARCHARLONG VARCHAR1 Numeric precision might be lost when inputs are implicitly converted to FLOAT be<strong>for</strong>e they areprocessed by the <strong>SAS</strong>_PUT( ) function.2 Only the Latin-1 character set is supported <strong>for</strong> character data. UNICODE is not supported atthis time.3 When character inputs are larger than 256 characters, the results depend on the session modeassociated with the Teradata connection.3 In ANSI session mode (the typical <strong>SAS</strong> default mode) passing a character field larger than256 results in a string truncation error.3 In Teradata session mode, character inputs larger than 256 characters are silentlytruncated to 256 characters be<strong>for</strong>e the <strong>for</strong>mat is applied. The <strong>SAS</strong>/STAT procedures thathave been enhanced <strong>for</strong> in-database processing use the Teradata session mode.4 The <strong>SAS</strong>_PUT( ) function has a VARCHAR data type <strong>for</strong> its first argument when the valuepassed has a data type of CHARACTER. There<strong>for</strong>e, columns with a data type of CHARACTERhave their trailing blanks trimmed when converting to a VARCHAR data type.The <strong>SAS</strong>_PUT( ) function does not support direct use of the Teradata data typesshown in Table 28.4 on page 821. In some cases, unsupported data types can beexplicitly converted to a supported type by using <strong>SAS</strong> or SQL language constructs. Forin<strong>for</strong>mation about per<strong>for</strong>ming explicit data conversions, see “Data Types <strong>for</strong> Teradata”on page 838 and your Teradata documentation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!