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 to DB2 Under UNIX and PC Hosts 4 DBLOAD Procedure Data Conversions 481DB2 Data Type <strong>SAS</strong> Data Type Default <strong>SAS</strong> FormatFLOAT numeric noneDOUBLE numeric noneTIME numeric TIME8.DATE numeric DATE9.TIMESTAMP numeric DATETIMEm.n* n in DB2 data types is equivalent to w in <strong>SAS</strong> <strong>for</strong>mats.The following table shows the default DB2 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 15.5FormatsLIBNAME Statement: Default DB2 Data Types <strong>for</strong> <strong>SAS</strong> Variable<strong>SAS</strong> Variable Formatm.nother numerics$n.datetime <strong>for</strong>matsdate <strong>for</strong>matstime <strong>for</strong>matsDB2 Data TypeDECIMAL (m,n)DOUBLEVARCHAR(n) (n4000)TIMESTAMPDATETIME* n in DB2 data types is equivalent to w in <strong>SAS</strong> <strong>for</strong>mats.DBLOAD Procedure Data ConversionsThe following table shows the default DB2 data types that <strong>SAS</strong>/<strong>ACCESS</strong> assigns to<strong>SAS</strong> variable <strong>for</strong>mats when you use the DBLOAD procedure.Table 15.6PROC DBLOAD: Default DB2 Data Types <strong>for</strong> <strong>SAS</strong> Variable Formats<strong>SAS</strong> Variable Format$w.DB2 Data TypeCHAR(n)w. DECIMAL(p)w.dIBw.d, PIBw.dall other numerics*datetimew.ddatew.time.**DECIMAL(p,s)INTEGERDOUBLETIMESTAMPDATETIME* Includes all <strong>SAS</strong> numeric <strong>for</strong>mats, such as BINARY8 and E10.0.** Includes all <strong>SAS</strong> time <strong>for</strong>mats, such as TODw,d and HHMMw,d.

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

Saved successfully!

Ooh no, something went wrong!