Hi everybody, what i mean is I have two dataset which are named the same with the difference of a number, can i use %let so that the code runs the two dataset?
%let number=xx;
data= DB&number;
set DBinput;
run;
would this work? is it correct? thanks for support
The macro variable will resolve before the data step executes. The SAS "data step compiler" will "see":
data= DBxx;
set DBinput;
run;
If that's what you want to happen then you're good to go.
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.