Passing SAS Functions to OLE DB

SAS/ACCESS Interface to OLE DB passes the following SAS functions for OLE DB to DB2, Microsoft SQL Server, and Oracle for processing. Where the OLE DB function name differs from the SAS function name, the OLE DB name appears in parentheses. For more information, see Passing Functions to the DBMS Using PROC SQL.

DAY SECOND
HOUR WEEKDAY
MINUTE YEAR
MONTH

SQL_FUNCTIONS=ALL allows for SAS functions that have slightly different behavior from corresponding database functions that are passed down to the database. Only when SQL_FUNCTIONS=ALL can the SAS/ACCESS engine also pass these SAS SQL functions to OLE DB. Due to incompatibility in date and time functions between OLE DB and SAS, OLE DB might not process them correctly. Check your results to determine whether these functions are working as expected.

Note: SAS does not modify non-integer arguments to the MOD function. If your DBMS does truncate non-integer arguments to MOD, then DBMS results for this function might vary from SAS results. For more information, see Functions Where Results Might Vary: MOD Function.
ABS LOWCASE
ARCOS (ACOS) MOD (see note)
ARSIN (ASIN) QTR
ATAN REPEAT
AVG SIGN
BYTE SIN
CEIL SOUNDEX
COMPRESS SQRT
COS STRIP (TRIM)
DATE SUBSTR
DATEPART TAN
DATETIME TIME
EXP TIMEPART
FLOOR TODAY
INDEX TRANWRD
LENGTH TRIMN
LOG UPCASE
LOG10
Last updated: February 3, 2026