proc sql noprint;
select count(abvar) into : abnobs trimmed from absent1;
quit;
data origin_diff;
set absent1 nobs=nobs end=eof;
if &abnobs. ne 0 then do;
if _n_=1 then put "****************************************************************************";
put "WAR" "NING: warning[" +1 abvar"].";
if eof then put "****************************************************************************";
end;
else if &abnobs.=0 then do;
put "****************************************************************************";
put "there is not a warning.";
put "****************************************************************************";
end;
run;
note:
abvar是存储信息的变量。
WAR" "NING:这样写可以防止warning单词分开!