BookmarkSubscribeRSS Feed

These are a Few of Our Favorite SAS Functions

Started ‎10-12-2022 by
Modified ‎11-03-2022 by
Views 874


Presenters: Richann Watson, Louise Hadden


SAS functions act as subroutines, combining arguments, operations and optional parameters, and they return a value as a result. These values can be either numeric or characters and can be used to create variables in expressions, via the DATA step, WHERE statements, the SAS macro language, within PROC REPORT and in PROC SQL.


CALL routines are very similar to SAS functions, sometimes sharing the same name and providing the same or similar functionality. CALL routines, as the name implies, begin with CALL statements, with the routine name appearing after “CALL”, followed by parenthetical arguments. As with SAS functions, the number of required and optional arguments vary.


Functions and CALL routines fall into specific categories, including character and string-matching functions and CALL routines and mathematical functions. Our favorite functions, PRXMATCH and PRXCHANGE, CATT and CATX and mathematical functions, fall into these two broad categories. We will provide descriptions of our favorite functions, guidance on how to use these functions and individual business use examples.


Great presentation!

Version history
Last update:
‎11-03-2022 03:40 PM
Updated by:


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

Article Tags

SAS Explore 2023 presentations are now available! (Also indexed for search at!)

View all available SAS Explore content by category: