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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.