***Since I was using this to execute a nested macro I created, I changed the code a little to only run til the end of the list- instead of when x was null. %macro test(array=Var1 Var2 Var3 .... ); %let i = 1; %do %until( &i = %eval(%sysfunc(countw(&array.)) +1)); %let x = %scan(&array, &i); %put I = &i x = &x; %let i = %eval(&i +1); %MyNestedMacro(varn= &x); %end; %mend; %test;
... View more