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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface <strong>for</strong> In<strong>for</strong>mix 4 LIBNAME Statement Data Conversions 587To control how In<strong>for</strong>mix handles <strong>SAS</strong> missing character values, use theNULLCHAR= and NULLCHARVAL= data set options.LIBNAME Statement Data ConversionsThis table shows the default <strong>for</strong>mats that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Infomix assignsto <strong>SAS</strong> variables when using the LIBNAME statement to read from an Infomix table.These default <strong>for</strong>mats are based on Infomix column attributes. To override thesedefault data types, use the DBTYPE= data set option on a specific data set.Table 19.3LIBNAME Statement: Default <strong>SAS</strong> Formats <strong>for</strong> In<strong>for</strong>mix Data TypesIn<strong>for</strong>mix Column TypeDefault <strong>SAS</strong> FormatCHAR(n) $nDATEDATETIME**DECIMALDOUBLE PRECISIONFLOATINTEGERINT8 #DATE9.DATETIME24.5m+2.nnonenonenonenoneINTERVAL $nMONEYnoneNCHAR(n) $nNLS support requiredNUMERICnoneNVARCHAR(m,n)* $mNLS support requiredREALSERIALSERIAL8 #SMALLFLOATSMALLINTnonenonenonenonenoneTEXT* $nVARCHAR(m,n)* $m* Only supported by In<strong>for</strong>mix online databases.# The precision of an INT8 or SERIAL8 is 15 digits.** If the In<strong>for</strong>mix field qualifier specifies either HOUR, MINUTE, SECOND, or FRACTION as thelargest unit, the value is converted to a <strong>SAS</strong> TIME value. All other values—such as YEAR,MONTH, or DAY—are converted to a <strong>SAS</strong> DATETIME value.The following table shows the default In<strong>for</strong>mix data types that <strong>SAS</strong>/<strong>ACCESS</strong> appliesto <strong>SAS</strong> variable <strong>for</strong>mats during output operations when you use the LIBNAMEstatement.

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

Saved successfully!

Ooh no, something went wrong!