... and yes, %do loops are easier %macro fluff2(prefix=,infix=,suffix=); %local I J K value; %let value =; %do I = 1 %to %sysfunc(countw(&prefix,%str( ))); %do J = 1 %to %sysfunc(countw(&infix ,%str( ))); %do K = 1 %to %sysfunc(countw(&suffix,%str( ))); %let value = &Value. %scan(&Prefix ,&I )%scan(&Infix ,&J )%scan(&Suffix,&K); %end; %end; %end; &value %mend; %Let Item2 = %fluff2(prefix=A,infix=&ItemNmbrs,suffix=XXX); %put Item2:&Item2;
... View more