Passing SAS Functions to DB2 under z/OS

SAS/ACCESS Interface to DB2 under z/OS 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 QTR (QUARTER)
AVG REPEAT
CEIL RIGHT (RTRIM)
COS SECOND
COSH SIGN
COUNT SIN
DTEXTDAY SINH
DTEXTMONTH SQRT
DTEXTWEEKDAY STRIP
DTEXTYEAR SUBSTR
EXP SUM
FLOOR TAN
HOUR TANH
INDEX (LOCATE) TRANWRD (REPLACE)
LEFT (LTRIM) TRIMN (RTRIM)
LOWCASE (LCASE) TRUNC
LOG UPCASE (UCASE)
LOG10 WEEKDAY (DAYOFWEEK)
MAX
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.
DATEPART (DATE) TODAY (CURRENT DATE)
LENGTH TRANSLATE
TIMEPART (TIME)
These functions are not passed to the DBMS in DB2 V5. None of them existed in DB2 prior to DB2 V6. Also, there is no way to determine what location you are connected to and which functions are supported when you connect using DRDA.
The following functions are passed to the DBMS in DB2 V5, V6, and later. They are not passed to the DBMS when you connect using DRDA.
YEAR
MONTH
DAY