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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 <strong>SAS</strong>DATEFMT= Data Set Option 365DB2 under UNIX and PC Hosts: By default, the SQLFetch API call is used and nointernal <strong>SAS</strong> buffering is per<strong>for</strong>med. Setting READBUFF=1 or greater causes theSQLExtendedFetch API call to be used.Greenplum, Microsoft SQL Server, Netezza, ODBC, Sybase IQ: By default, theSQLFetch API call is used and no internal <strong>SAS</strong> buffering is per<strong>for</strong>med. SettingREADBUFF=1 or greater causes the SQLExtendedFetch API call to be used.See AlsoTo assign this option to a group of relational DBMS tables or views, see the“READBUFF= LIBNAME Option” on page 174.<strong>SAS</strong>DATEFMT= Data Set OptionChanges the <strong>SAS</strong> date <strong>for</strong>mat of a DBMS column.Default value: DBMS-specificValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, Greenplum, HP Neoview,In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC, OLE DB, Oracle, Sybase,Sybase IQ, TeradataSyntax<strong>SAS</strong>DATEFMT=(DBMS-date-col-1=’<strong>SAS</strong>-date-<strong>for</strong>mat’)Syntax DescriptionDBMS-date-colspecifies the name of a date column in a DBMS table.<strong>SAS</strong>-date-<strong>for</strong>matspecifies a <strong>SAS</strong> date <strong>for</strong>mat that has an equivalent (like-named) in<strong>for</strong>mat. Forexample, DATETIME21.2 is both a <strong>SAS</strong> <strong>for</strong>mat and a <strong>SAS</strong> in<strong>for</strong>mat, so it is a validvalue <strong>for</strong> the <strong>SAS</strong>-date-<strong>for</strong>mat argument.DetailsIf the <strong>SAS</strong> column date <strong>for</strong>mat does not match the date <strong>for</strong>mat of the correspondingDBMS column, convert the <strong>SAS</strong> date values to the appropriate DBMS date values. Usethe <strong>SAS</strong>DATEFMT= option to convert date values from the default <strong>SAS</strong> date <strong>for</strong>mat toanother <strong>SAS</strong> date <strong>for</strong>mat that you specify.Use the <strong>SAS</strong>DATEFMT= option to prevent date type mismatches in thesecircumstances:3 during input operations to convert DBMS date values to the correct <strong>SAS</strong> DATE,TIME, or DATETIME values

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

Saved successfully!

Ooh no, something went wrong!