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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 722 views
  • 0 likes
  • 3 in conversation