CALL SYMPUT in SAS – Explained
CALL SYMPUT and CALL SYMPUTX CALL SYMPUT and CALL SYMPUTX in SAS are the most commonly used DATA Step call routines to interact with the Macro Facility in SAS. Both are used to assign a value of DATA step to a macro variable.‚ÄčIn this article, I will demonstrate some of the uses and important facts… (0 comment)

Exploring SAS Macro functions – eval and sysevalf
EVAL and SYSEVALF are the two macro functions that evaluate arithmetic expressions and logical expressions. First, let’s understand why do we need EVAl or the SYSEVALF function. In SAS, Macro’s are text-based which means there are no numeric variables. Whereas in the Data Step, numbers and characters are two separate things. Therefore, arithmetic and logical… (0 comment)

Creating macro variables from SAS dataset
Macro variables in SAS are used extensively for reusing codes. You can create a multi-usable program in which analysis of variables can be controlled by updating the values of macro variables. SAS provides an elegant solution to overcome these problems with the CALL SET routine. You can convert data step variables into macro variables with a few lines of code using the %SYSCALL SET routine. This routine also allows you to convert and process one observation of data step variables at a time thus saving memory usage.… (0 comment)