SAS Macros

Macros allow you to execute a set of SAS statements with just one statement, and while this alone can be helpful, macros are even more powerful when you add parameters to them.

IN operator in SAS macro

How to use the IN operator in SAS macro?

IN operator is used in the data step to replace multiple OR conditions. However, if you try to use IN Operator in SAS Macro then you will find that the IN operator is not available

eval and sysevalf

Exploring SAS Macro functions – Eval and Sysevalf

EVAL and SYSEVALF are the two macro functions that evaluate arithmetic expressions and logical expressions.Use the %Eval function to evaluate an arithmetic expression in SAS macro and use the %SYSEVALF function to evaluate floating-point arithmetic expressions.

Receive the latest articles in your inbox

Insert your email signup form below

🤞 Don’t miss these tips!

We don’t spam! Read more about our privacy policy.