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: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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