03-06-2013 09:37 AM
I'm trying to write a macro loop and having a bit of trouble getting it to work properly.
I need the loop to scroll through several macro variables that I have named sequentially and create a data set for each.
%let File1 = 'c:/myfile'
%let File2 = 'c:/myfile2'
%let File3 = 'c:/myfile3'
%let Filecount = 3;
I wrote the code so that the loop will change the number of the macro variable but this is not working. I think its because I'm using two macro variables to call one macro variable.
%do X=1 %to &Filecount;
F1 $ 106;
F1 : $CHAR106.;
How can I reference these variables?
Need further help from the community? Please ask a new question.