SAS/ACCESS
Interface to DB2 under UNIX and PC Hosts passes the following SAS
functions to DB2 for processing if the DBMS driver or client that
you are using supports this function. Where the DB2 function name
differs from the SAS function name, the DB2 name appears in parentheses.
For more information, see
Passing Functions to the DBMS Using PROC SQL.
ABS |
MIN |
ARCOS (ACOS) |
MINUTE |
ARSIN (ASIN) |
MOD |
ATAN |
MONTH |
AVG |
QTR (QUARTER) |
BYTE (CHAR) |
REPEAT |
CEIL (CEILING) |
SECOND |
COMPRESS (REPLACE) |
SIGN |
COS |
SIN |
COSH |
SINH |
COUNT (COUNT_BIG) |
SQRT |
DAY (DAYOFMONTH) |
STRIP (RTRIM, LTRIM) |
EXP |
SUBSTR (SUBSTRING) |
FLOOR |
SUM |
HOUR |
TAN |
INDEX (LOCATE) |
TANH |
LENGTH |
TRANWRD (REPLACE) |
LOG |
TRIMN (RTRIM) |
LOG10 |
UPCASE (UCASE) |
LOWCASE (LCASE) |
WEEKDAY (DAYOFWEEK) |
MAX |
YEAR |
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 DB2. Due to incompatibility in date and time functions
between DB2 and SAS, DB2 might not process them correctly. Check your
results to determine whether these functions are working as expected.
DATE (CURDATE) |
TIME (CURTIME) |
DATEPART (DATE) |
TIMEPART |
DATETIME (NOW) |
TODAY (CURDATE) |
SOUNDEX |