BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello All. Suggestions on why the macro autocall_mac1 is not being resolved in this program?

filename macros "C:\sas_macros";
options mautosource sasautos = (macros SASAUTOS);

%autocall_mac1

the log says :
WARNING: Apparent invocation of macro AUTOCALL_MAC1 not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

C:\sas_macros\autocall_mac1.sas looks like this:
%macro autocall_mac1;
%let y = autocall_mac1;
%put "&y";
%mend autocall_mac1;

%autocall_mac1

Andy
5 REPLIES 5
Peter_C
Rhodochrosite | Level 12
are you running Enterprise Guide.?
deleted_user
Not applicable
I have SAS for the PC.
9.1.3 service pack 4, windows version 5.1.2600
deleted_user
Not applicable
I closed and restarted SAS, and the program works; thought I tried that yesterday before posting..
Peter_C
Rhodochrosite | Level 12
could it have been the kind of problem that option NOMRECALL causes. Other than restarting after a macro compile/autocall failure the switching on MRECALL can help..!
PatrickG
SAS Employee
MRECALL is mostly intended as a debugging tool (that's why NOMRECALL is the default) but it can be helpful in figuring out this sort of problem...!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 920 views
  • 0 likes
  • 3 in conversation