DATA Step, Macro, Functions and more

sasautos question

Reply
N/A
Posts: 0

sasautos question

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
Valued Guide
Posts: 2,177

Re: sasautos question

Posted in reply to deleted_user
are you running Enterprise Guide.?
N/A
Posts: 0

Re: sasautos question

I have SAS for the PC.
9.1.3 service pack 4, windows version 5.1.2600
N/A
Posts: 0

Re: sasautos question

Posted in reply to deleted_user
I closed and restarted SAS, and the program works; thought I tried that yesterday before posting..
Valued Guide
Posts: 2,177

Re: sasautos question

Posted in reply to deleted_user
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..!
SAS Employee
Posts: 58

Re: sasautos question

Posted in reply to deleted_user
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...!
Ask a Question
Discussion stats
  • 5 replies
  • 182 views
  • 0 likes
  • 3 in conversation