i want to Calculate how many variable and out put in log
i want use do loop
this is my Program
%PUT _USER_;
OPTIONS MPRINT;
%MACRO varnum(a);
data d;
array a &a. ;
%do i=1 %to %str(dim(a)-1);
%put there are &i variables;
%end;
run;
%MEND;
%varnum(age income educ)
thanks