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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.