I tried creating all the values in macro variable for 600 variable names and 600 values and tried running the do loop: DATA LIB.SUB_FINAL1; SET LIB.SUB_FINAL; %do i=1 %to 600 %by 1; %IF &&VARNAME&I=. %THEN &&VARNAME&I=&&PERC_MEDN&I; %end; RUN; Thought values are resolving correctly, but its not doing, what it is intended to do. e.g. log varname344 resolved to amount_ex %IF condition &&VARNAME&I=. is FALSE now amount_ex is present in the dataset, but why it is saying false? does it run only over one row? do i need to use some other counter like j=1 to 80000 to run over all rows?
... View more