Previous Page | Next Page

SAS/ACCESS Interface to DB2 Under z/OS

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 HOUR SIGN
ARCOS (ACOS) INDEX (LOCATE) SIN
ARSIN (ASIN) LEFT (LTRIM) SINH
ATAN LOWCASE (LCASE) SQRT
AVG LOG STRIP
CEIL LOG10 SUBSTR
COS MAX SUM
COSH MIN TAN
COUNT MINUTE TANH
DTEXTDAY MOD TRANWRD (REPLACE)
DTEXTMONTH QTR (QUARTER) TRIMN (RTRIM)
DTEXTWEEKDAY REPEAT TRUNC
DTEXTYEAR RIGHT (RTRIM) UPCASE (UCASE)
EXP SECOND WEEKDAY (DAYOFWEEK)
FLOOR

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) TIMEPART (TIME) TRANSLATE
LENGTH TODAY (CURRENT DATE)

Because none of these functions existed in DB2 before DB2 V6, these functions are not passed to the DBMS in DB2 V5. These functions are also not passed to the DBMS when you connect using DRDA because there is no way to determine what location you are connected to and which functions are supported there.

These functions are passed to the DBMS in DB2 V5, as well as DB2 V6 and later. They are not passed to the DBMS when you connect using DRDA.

YEAR
MONTH
DAY

Previous Page | Next Page | Top of Page