我正在尝试在宏中使用libname,但它会产生很多错误。
libname result 'G';
%macro datain(yr);
data dc_&yr;
set result.dc_&yr;
end;
%mend datain;
错误
SYMBOLGEN: Macro variable YR resolves to 2014
SYMBOLGEN: Macro variable YR resolves to 2014
161: LINE and COLUMN cannot be determined.
NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN
where the error has occurred.
ERROR 161-185: No matching DO/SELECT statement.
答案 0 :(得分:0)
您需要使用run;
来结束数据步骤。您改为编写了end;
。