I have three libraries for eg lib a, lib b, lib c
And that lib a has 10 data sets like ae, demo, concom, etc... And so does
lib b and c.... I have to write a common program using macro ...than
separate pogram for each 3 library ..
So you need something like
%macro mymac(lib);
proc print data=&lib..ae;
run;
%mend;
%mymac(a)
%mymac(b)
%mymac(c)
?
Please be more specific. Describe your situation, and what you want to achieve from that.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.