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 Greenplum 4 LIBNAME Statement Data Conversions 551LIBNAME Statement Data ConversionsThe following table shows the default <strong>for</strong>mats that <strong>SAS</strong>/<strong>ACCESS</strong> Interface toGreenplum assigns to <strong>SAS</strong> variables when using the . See “Overview of the LIBNAMEStatement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 87.These default <strong>for</strong>mats are based on Greenplum column attributes.Table 17.3LIBNAME Statement: Default <strong>SAS</strong> Formats <strong>for</strong> Greenplum Data TypesGreenplum Data Type <strong>SAS</strong> Data Type Default <strong>SAS</strong> FormatCHAR(n)* character $n.VARCHAR(n)* character $n.INTEGER numeric 11.SMALLINT numeric 6.TINYINT numeric 4.BIT numeric 1.BIGINT numeric 20.DECIMAL(p,s) numeric m.nNUMERIC(p,s) numeric m.nREAL numeric noneDOUBLE numeric noneTIME numeric TIME8.DATE numeric DATE9.TIMESTAMP numeric DATETIME25.6* n in Greenplum data types is equivalent to w in <strong>SAS</strong> <strong>for</strong>mats.The next table shows the default Greenplum 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 17.4FormatsLIBNAME Statement: Default Greenplum 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>matsGreenplum Data TypeDECIMAL(p,s)DOUBLEVARCHAR(n)*TIMESTAMPDATETIME* n in Greenplum data types is equivalent to w in <strong>SAS</strong> <strong>for</strong>mats.

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

Saved successfully!

Ooh no, something went wrong!