各位大神好,最近在学习SAS宏程序,看到这么一段程序,不是很理解这段程序是干什么的(特别是第2,7,8和10行的意思),请各位大神指点!谢谢!
%macro numargs(arg, delimit);
%if %quote(&arg)= %then %do;
0
%end;
%else %do;
%let n=1;
%do %until (%qscan(%quote(&arg), %eval(&n), %str( ))=%str());
%let n=%eval(&n+1);
%end;
%eval(&n-1)
%end;
%mend numargs;