Passing SAS Functions to Netezza

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

ABS LOG10 (log)
ARCOS (ACOS) LOWCASE (lower)
ARSIN (ASIN) MAX
ATAN MIN
ATAN2 MINUTE (date_part)
AVG MOD (see note)
BAND (int4and) MONTH (date_part)
BNOT (int4not) QTR (date_part)
BLSHIFT (int4shl) REPEAT
BRSHIFT (int4shr) SECOND (date_part)
BOR (int4or) SIGN
BXOR (int4xor) SIN
BYTE (chr) SQRT
CEIL STRIP (btrim)
COALESCE SUBSTR
COMPRESS (translate) SUM
COS TAN
COUNT TRANSLATE (see note)
DAY (date_part) TRANWRD (translate)
EXP TRIMN (rtrim)
FLOOR UPCASE (upper)
HOUR (date_part) WEEK[<SAS date value>, V'] (date_part)
INDEX (position) WEEKDAY (date_part)
LOG (ln) YEAR (date_part)
Note: SAS does not modify non-integer arguments to the MOD function. If your DBMS does truncate non-integer arguments to MOD, then DBMS results for this function might vary from SAS results. For more information, see Functions Where Results Might Vary: MOD Function.
Note: If more than three arguments are provided for the TRANSLATE function, then TRANSLATE is performed by SAS and the function is not passed to the database.

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

DATE (current_date) TIMEPART (cast)
DATEPART (cast) TODAY (current_date)
DATETIME (now) WEEK[<SAS date value>] (date_part)
LENGTH WEEK[<SAS date value>, 'U'] (date_part)
ROUND WEEK[<SAS date value>, 'W'] (date_part)
TIME (current_time) WEEKDAY (date_part)
Last updated: February 3, 2026