Answers

Question and Answer:

  Home  SAS

⟩ How to add a number to a macro variable?

Use %eval to do simple calculation for macro variables.

e.g.,

data _null_;

%let a = 1;

%let b = %eval(&a+1);

%put a=&a b=&b;

run;

 139 views

More Questions for you: