04-28-2017 01:51 PM - edited 04-28-2017 01:52 PM
A macro named test666 stored at "D:\MYSAS\sasmacro\test666.sas"
content of test666.sas :
The option in config file: OPTIONS SASAUTOS=("D:\MYSAS\sasmacro");
Here is my question:
After I open a new windows SAS session, I want to display the definition of macro test666.what I should do?
04-28-2017 02:00 PM
Make a fileref that mimics the search path you have for your SASAUTOS setting and use that.
filename sa ("D:\MYSAS\sasmacro") ;
Then if you want to dump it to the log.
data _null_; infile sa('test666.sas'); input; put _infile_; run;
Or if you want to complile (or re-compile) it.
%include sa('test666.sas') / source2;
Or use the INCLUDE editor command.