Hi,
My impression was that when you a a file with a lot of macros in a particular location you could call these macros with a
options sasautos=(sasautos "<path>"));
In my case this does not work. It says "Apparent invocation of macro <macroname>" not resolved.
Do I need something extra ? Path is existing (checked).
I'm working in a Windows environment.
Thanks !
Rgds
William
Please post the log as text.
The sas-session is running on windows, too? Or just the client?
@Billybob73 wrote:
Hi,
My impression was that when you a a file with a lot of macros in a particular location you could call these macros with a
options sasautos=(sasautos "<path>"));
In my case this does not work. It says "Apparent invocation of macro <macroname>" not resolved.
Do I need something extra ? Path is existing (checked).
I'm working in a Windows environment.
Thanks !
Rgds
William
To use the SAS autos the macro definition files have to 1) be in the SASAUTOS search path 2) have exactly one macro in each .SAS program file and 3) the name of the file has to be exactly the same as the name of the macro.
So if you have a single SAS program file with multiple macro definitions in it then this does not work.
If your file name is different then the name of the macro: such as filename is mymacro and the name of the macro invoked is %countthis then it will not work.
You can try:
filename mymacros <path>;
options sasautos = (sasautos mymacros);
each macro should be saved separately in the path as <macro_name>.sas or
you can gather a group of macros in one <file_name1>.sas and precede your code
with: %include <path>/<file_name1>.sas; - in order to compile the macros.
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.