Passing SAS Functions to ODBC

SAS/ACCESS Interface to ODBC passes the following SAS functions to the data source for processing if the DBMS server supports this function. Where the ODBC function name differs from the SAS SQL function name, the ODBC name appears in parentheses.For details, see Passing Functions to the DBMS Using PROC SQL.

ABS LOG
ARCOS LOG10
ARSIN LOWCASE
ATAN MINUTE
ATAN2 * ** MOD
BYTE MONTH
CEIL QTR
COALESCE * ** REPEAT
COS SECOND
COSH SIGN
COT SIN
COUNT ** SINH
DAY SOUNDEX * **
DTEXTDAY SQRT
DTEXTMONTH STD * **
DTEXTWEEKDAY SUBSTR
DTEXTYEAR TAN
EXP TANH
FLOOR TRANWRD
HOUR TRIMN
INDEX UPCASE
LEFT VAR * **
LENGTH WEEKDAY
LENGTHC ** YEAR

* This function is passed by default when ODBC connects to Microsoft SQL Server.

** This function is passed by default when ODBC connects to Db2.

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 ODBC. Due to incompatibility in date and time functions between ODBC and SAS, ODBC might not process them correctly. Check your results to determine whether these functions are working as expected.

COMPRESS SOUNDEX
DATE TIME
DATEPART TIMEPART
DATETIME TODAY
Last updated: February 3, 2026