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!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.