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.

736 LIBNAME Statement Data Conversions 4 Chapter 25Oracle Data TypeBLOB RAWBINARY_DOUBLEBINARY_FLOATNUMBERDefault <strong>SAS</strong> Format$HEXw. (where w/2 is the minimum of 32767and the value of the DBMAX_TEXT= option)nonenonenoneNUMBER(p) w.NUMBER(p,s)DATETIMESTAMPTIMESTAMP WITH LOCAL TIMEZONETIMESTAMP WITH TIMEZONEINTERVAL YEAR TO MONTHINTERVAL DAY TO SECONDw.dDATETIME20.DATETIMEw.d (where d is derived from thefractional-second precision)DATETIMEw.d (where d is derived from thefractional-second precision)$w)w. (where w is derived from the year precision)w.d (where w is derived from thefractional-second precision)* The value of the DBMAX_TEXT= option can override these values.<strong>SAS</strong>/<strong>ACCESS</strong> does not support Oracle data types that do not appear in this table.If Oracle data falls outside valid <strong>SAS</strong> data ranges, the values are usually counted asmissing.<strong>SAS</strong> automatically converts Oracle NUMBER types to <strong>SAS</strong> number <strong>for</strong>mats by usingan algorithm that determines the correct scale and precision. When the scale andprecision cannot be determined, <strong>SAS</strong>/<strong>ACCESS</strong> allows the procedure or application todetermine the <strong>for</strong>mat. You can also convert numeric data to character data by using theSQL pass-through facility with the Oracle TO_CHAR function. See your Oracledocumentation <strong>for</strong> more details.The following table shows the default Oracle data types that <strong>SAS</strong>/<strong>ACCESS</strong> assigns to<strong>SAS</strong> variable <strong>for</strong>mats during output operations when you use the LIBNAME statement.Table 25.5LIBNAME Statement: Default Oracle Data Types <strong>for</strong> <strong>SAS</strong> Formats<strong>SAS</strong> Variable Format$w.$w. (where w > 4000)w.dany date, time, or datetime <strong>for</strong>mat withoutfractional parts of a secondany date, time, or datetime <strong>for</strong>mat withoutfractional parts of a secondOracle Data TypeVARCHAR2(w)CLOBNUMBER(p,s)DATETIMESTAMPTo override these data types, use the DBTYPE= data set option during outputprocessing.

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

Saved successfully!

Ooh no, something went wrong!