Reputation: 11
I want to write a macro that will automatically identify datasets in my work library with names as PCT_202007, PCT_202008 and append them to final work table. How can I do this?
Upvotes: 1
Views: 139
Reputation: 4937
No need for a macro. Use the colon operator like this:
data pct_202007; set sashelp.class; run;
data pct_202008; set sashelp.class; run;
data pct_202009; set sashelp.class; run;
data want;
set work.pct_:;
run;
Upvotes: 3