Hi Folks,
when running this macro
%MACRO test;
%PUT &SysMacroName.;
%LET blubb = some lowcased text;
%LET bla = %LOWCASE(&blubb.);
%LET bla2 = %nrbquote(%CMPRES(&blubb.));
%PUT &=bla &=bla2;
%mend;
%TEST;
I get these Warnings:
WARNING: Apparent invocation of macro LOWCASE not resolved.
WARNING: Apparent invocation of macro CMPRES not resolved.
WARNING: Apparent invocation of macro LOWCASE not resolved.
BLA=%LOWCASE(some lowcased text) BLA2=%CMPRES(some lowcased text)
why can these two calls to SAS Autocall macros not be resolved?
Also, I want SAS to run the macros "LOWCASE" and "CMPRES" rather than just write them as vlaues into bla and bla, respectively.
Cheers,
FK
Looks like someone messed with the AUTOCALL facility, either by changing the SAS configuration or doing something with the macro files.
Both of these macros are "function style" macros, where the result is put in place of the macro call. Whenever these macros are used ("run" as you called it), the result appears in their place.
Looks like someone messed with the AUTOCALL facility, either by changing the SAS configuration or doing something with the macro files.
Both of these macros are "function style" macros, where the result is put in place of the macro call. Whenever these macros are used ("run" as you called it), the result appears in their place.
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.