Previous Page | Next Page

SAS/ACCESS Interface to DB2 Under UNIX and PC Hosts

Passing SAS Functions to DB2 Under UNIX and PC Hosts

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 HOUR SIGN
ARCOS (ACOS) INDEX (LOCATE) SIN
ARSIN (ASIN) LENGTH SINH
ATAN LOG SQRT
AVG LOG10 STRIP
BYTE (CHAR) LOWCASE (LCASE) SUBSTR (SUBSTRING)
CEIL (CEILING) MAX SUM
COMPRESS (REPLACE) MIN TAN
COS MINUTE TANH
COSH MOD TRANWRD (REPLACE)
COUNT (COUNT_BIG) MONTH TRIMN (RTRIM)
DAY (DAYOFMONTH) QTR (QUARTER) UPCASE (UCASE)
EXP REPEAT WEEKDAY (DAYOFWEEK)
FLOOR SECOND 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) SOUNDEX TIMEPART
DATEPART TIME (CURTIME) TODAY (CURDATE)
DATETIME (NOW)

Previous Page | Next Page | Top of Page