Passing SAS Functions to HAWQ

SAS/ACCESS Interface to HAWQ passes the following SAS functions to HAWQ for processing. Where the HAWQ function name differs from the SAS function name, the HAWQ name appears in parentheses. For more information, see Passing Functions to the DBMS Using PROC SQL.

ABS MAX
ARCOS (ACOS) MIN
ARSIN (ASIN) MINUTE (DATEPART)
ATAN MONTH (DATEPART)
ATAN2 QTR (DATEPART)
AVG REPEAT
BYTE (CHR) SECOND (DATEPART)
CEIL SIGN
COMPRESS (TRANSLATE) SIN
COS SQRT
COUNT STRIP (BTRIM)
DAY (DATEPART) SUBSTR (SUBSTRING)
EXP SUM
FLOOR TAN
HOUR (DATEPART) TRANWRD (REPLACE)
INDEX (STRPOS) TRIMN (RTRIM)
LENGTH UPCASE (UPPER)
LOG (LN) WEEKDAY (DATEPART)
LOG10 (LOG) YEAR (DATEPART)
LOWCASE (LOWER)

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

`

DATE (NOW) TIME (current_time)
DATEPART (CONVERT) TIMEPART (TIME)
DATETIME (NOW) TODAY (NOW)
Last updated: February 3, 2026