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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.