代码:
OPTIONS SYMBOLGEN;
%let year=2003;
data _null_;
Current year = &year;
run;
日志窗口:
267  OPTIONS SYMBOLGEN;
268  %let year=2003;
269  data _null_;
270  Current year = &year;
     -------
     180
SYMBOLGEN:  宏变量 YEAR 解析为 2003
ERROR 180-322: 语句无效或未按正确顺序使用。
271  run;
NOTE: 由于出错,SAS 系统停止处理该步。