As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.


From sasCommunity
(Redirected from Function)
Jump to: navigation, search
This is a work in progress. You can contribute to this article.

Like other computer languages, SAS has numerous Functions that can be used in expressions. Most functions return a value based on the function's input parameters, although some functions do not need parameters but instead return a value for a particular measure, based on the sate of the measure at the time the function was called.

For a list of functions, see Index (Functions).

Generic syntax

function-name ( <parameters> )


Most of the functions in SAS are only directly available in the DATA Step. Some functions are available in various procedures and some procedures, such as the SQL procedure, have functions with the same name that operate in a different way in the procedure than in the DATA Step.

In macro code, the %SYSFUNC macro function allows most DATA Step functions to be used.

Creating user defined functions

The FCMP procedure can be used to create user defined functions.

Further reading


External links