I have some following SAS code in macro: It produces the correct output but with log warnings: WARNING: Apparent symbolic reference name not resolved. I searched %macro page (filein=, ls=, numofpages=);
data _null_;
infile "&filein." length = vlg ;
input @1 line $varying&ls.. vlg;
if _n_=1 and line="" then delete;
if _n_=1 then call symput("name",line); run;
data odsprn_;
retain num 1 pageno 0 lineno 0;
length line $&ls..;
infile "&filein." length=vlg end=fin;
n=_n_;
numpages=&numofpages.*1;
input @1 line $varying&ls.. vlg;
if upcase(substr(line,1,length(line))) = upcase(substr("&name.", 1)) then put _page_;
.
.
.
run;
%mend;
%page (filein=try, ls=15, numofpages=100); the forum and found it could be because 'name' is not assigned as a macro variable. I tried to add %global name; but still have the warning. Could anyone help me to figure out how to remove the warning ?
... View more