Hello,
I am trying to code a simple program in which the user inputs the libname then the dataset once and several proc's and data steps are used with this dataset. I'd like to have the option for the user to block off portions of code to run one proc or one data set independently, so I can't put everything in one giant macro. How can I have the user input the dataset location just once then have some sort of alias or another way of referring to this dataset multiple times? Thanks for helping out a newbie!
-Charles
Sorry, since you mentioned "giant macro" I asumed you were familiar with concept:
%Let myTab = MyLibref.MyLongTableNameIWant2Query;
proc print data=&MyTab.;
run;
Macro variable?
I'm very new to SAS-- could you give me an example? Thanks.
Statistical Computing Seminar: Introduction to SAS Macro Language
Not quite what you're looking for, but a good read to start off with.
Thank you very much! Macros are still unfamiliar territory as we didn't really cover them in Base SAS Programming... I appreciate the help.
Sorry, since you mentioned "giant macro" I asumed you were familiar with concept:
%Let myTab = MyLibref.MyLongTableNameIWant2Query;
proc print data=&MyTab.;
run;
Thank you very much!
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.