Hi I was trying to create a macro that only contains macro variable creation but it failed. Here is an example:
%macro createvariable;
%let a = 5;
%let b = 6;
%mend createvariable;
%createvariable;
data test;
c = &a + &b;
run;
But it will work as:
%macro createvariable;
%let a = 5;
%let b = 6;
data test;
c = &a + &b;
run;
%mend createvariable;
%createvariable;
So I was wondering if SAS won't be able to create a macro with only macro variables creation in it? Or there is a way to solve this problem. Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…