How to obtain macro code for dftest and logtest (not just info on the call parameters)? I would like to extend the code.
These macros are in the sasautos subdirectory of your SASROOT.
Run this first:
%put %sysget(SASROOT);
to get the base location of your SAS installation; add /sasautos/ to that, and the name of the macro file.
This retrieves the source code of the macro on SAS On Demand:
filename maccode "/pbr/sfw/sas/940/SASFoundation/9.4/sasautos/dftest.sas";
data _null_;
infile maccode;
input;
put _infile_;
run;
These macros are in the sasautos subdirectory of your SASROOT.
Run this first:
%put %sysget(SASROOT);
to get the base location of your SAS installation; add /sasautos/ to that, and the name of the macro file.
This retrieves the source code of the macro on SAS On Demand:
filename maccode "/pbr/sfw/sas/940/SASFoundation/9.4/sasautos/dftest.sas";
data _null_;
infile maccode;
input;
put _infile_;
run;
Thank you very much Kurt!
This was enlightening (truely!) ... just let me remark, that SASROOT can be resolved automatically by the filename line ... i.e. the following code also works:
filename maccode "!SASROOT/sasautos/dftest.sas";
data _null_;
infile maccode;
input;
put _infile_;
run;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.