There are similar named macro variables like temp1,temp2 etc..
temp1=xyz; temp2=abc;
Now I want to store these macro variable values into dataset.
I tried writing something as below:
%let n=2;
data current_data;
do=1 to &n.;
myvalues="&&temp&i.";
run;
But its not working. It seems that i is not getting resolved in the same dataset as it is declared in just like call symput function does.
Can anyone help?