07-04-2017 10:10 PM
I'm quite new to macro, and my question is:
I'm trying to merge 12 datasets together, named data_1 to data_12 with id and already sorted, and my code is
%do i=1 %to 12;
and it resulted in only the data from data_12. it seems that data_1 to data_11 were replaced and disappeared.
How should I rewrite that? Thank you very much!
07-04-2017 10:27 PM
When writing a macro language program, you always, always, always have to know what the program would look like if you were not using macro language.
@SAS_inquisitive has the right idea here. It just needs a slight tweak, removing the extra semicolon here:
Need further help from the community? Please ask a new question.