%let begcode0=98;
%let endcode0=284;
%macro pjn;
%do mnum=%eval(&begcode0) %to %eval(&endcode0);
data tempdata1;set hillout1;if mcode>= &mnum-35 & mcode<= &mnum;
run;
proc sort data=tempdata1;by mcode;
run;
proc reg data=tempdata1 noprint;
model hill=lhill l2hill;
output out=tempdata2 r=reshill;
run;
quit;
proc append base=reshill data=tempdata3;
quit;
%end;
%mend pjn;
WARNING: 没有解析宏 "BEGCODE0" 的调用。
WARNING: 没有解析宏 "BEGCODE0" 的调用。
ERROR: 在需要数值操作数的 %EVAL 函数或 %IF 条件中发现字符操作数。条件是: %begcode0
ERROR: %EVAL 函数没有要求值的表达式,或 %IF 语句没有条件。
ERROR: %FROM 值(%DO MNUM 循环中)无效。