Say I have this code:
data Work.dataset;
do i = 3 to 7;
%let mname = text;
%let mname = &mname.i;
end;
run;
I want the i
in %let mname = &mname.i;
to refer to i = 3 to 7
and not to the letter i
. How can I make this happen?
The real question I am trying to get at is found here: Loop over strings and read in files and save and I am trying to figure out a way to do this. This question was trying to tackle a part of that larger question.