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.

842 Data Returned as <strong>SAS</strong> Binary Data with Default Format $HEX 4 Chapter 28Teradata Data TypeDefault <strong>SAS</strong> Format(v MOD d) MOD(v,d)TRIMN(c) TRIM(TRAILING FROM c)1 When reading Teradata data into <strong>SAS</strong>, DBMS columns that exceed 32,767 bytes are truncated.The maximum size <strong>for</strong> a <strong>SAS</strong> character column is 32,767 bytes.2 If the DECIMAL number is extremely large, <strong>SAS</strong> can lose precision. For details, see the topic“Numeric Data”.3 See the topic “Date/Time Data” <strong>for</strong> how <strong>SAS</strong>/<strong>ACCESS</strong> handles dates that are outside the valid<strong>SAS</strong> date range.4 TIME and TIMESTAMP are supported <strong>for</strong> Teradata Version 2, Release 3 and later. The TIMEwith TIMEZONE, TIMESTAMP with TIMEZONE, and INTERVAL types are presented as <strong>SAS</strong>character strings, and thus are harder to use.When you create Teradata tables, the default Teradata columns that <strong>SAS</strong>/<strong>ACCESS</strong>creates are based on the type and <strong>for</strong>mat of the <strong>SAS</strong> column. The following table showsthe default Teradata data types that <strong>SAS</strong>/<strong>ACCESS</strong> assigns to the <strong>SAS</strong> <strong>for</strong>mats duringoutput processing when you use the LIBNAME statement.Table 28.11Default Output Teradata Data Types<strong>SAS</strong> Data Type <strong>SAS</strong> Format Teradata Data TypeCharacter$w.$CHARw.$VARYINGw.CHAR[w]Character $HEXw. BYTE[w]Numeric A date <strong>for</strong>mat DATENumeric TIMEw.d TIME(d) 1Numeric DATETIMEw.d TIMESTAMP(d) 1Numeric w.(w≤2) BYTEINTNumeric w.(3≤w≤4) SMALLINTNumeric w.(5≤w≤9) INTEGERNumeric w.(w≥10) FLOATNumeric w.d DECIMAL(w-1,d)Numeric All other numeric <strong>for</strong>mats FLOAT1 For Teradata Version 2, Release 2 and earlier, FLOAT is the default Teradata output type <strong>for</strong> <strong>SAS</strong>time and datetime values. To display Teradata columns that contain <strong>SAS</strong> times and datetimesproperly, you must explicitly assign the appropriate <strong>SAS</strong> time or datetime display <strong>for</strong>mat to thecolumn.To override any default output type, use the DBTYPE= data set option.Data Returned as <strong>SAS</strong> Binary Data with Default Format $HEXBYTEVARBYTE

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

Saved successfully!

Ooh no, something went wrong!