Thank you. I did some further reading on arrays, and tweaked that block of code like below. This worked. Thanks again for your help. data work.new; set SASUSER.TRNSTRANSPOSEDSAMPLE_CLAIMS; array column(&varcount); %for(srvc_cd, in=&list, do=%nrstr( length cd&srvc_cd 3.; do i=1 to &varcount.; if input(column{i},comma10.)=&srvc_cd then cd&srvc_cd = 1; end; )) run;
... View more