%let x=123; /*定义宏变量*/
%let s=study macro; /*定义宏变量*/
data;
y=&x+100; /*引用宏变量*/
put y; /*在日志窗口宏变量计算后的值*/
*put “&s”;
put ‘&s’;
run;
%put &s;
%let x=123; /*定义宏变量*/
%let s=study macro; /*定义宏变量*/
data;
y=&x+100; /*引用宏变量*/
put y; /*在日志窗口宏变量计算后的值*/
*put “&s”;
put ‘&s’;
run;
%put &s;