我是想用DO循环来实现以下功能。要是fa1=1 and faf1=. 就输出,同理fa2=1 and faf2=. 也输出。直到fa6和faf6.
用以下语句,把i循环,然后变成宏,这样不行吗?新手,请指教以下如何实现?谢谢各位了
data a;
set mtm_hq;
array
do i=1 to 6;
call symput('i',i);
if fa&i=1 and faf&i=. then output;
if fb&i=1 and fbf&i=. then output;
if fc&i=1 and fcf&i=. then output;
output;
end;
run;