I got a new computer but I used sas studio in chrome so everything should work the same. However, I am unable to read in files now, nothing works! Even the codes that worked before get a weird error, I honestly don't know what to do anymore. Need help.
I always get this error:
ERROR: Expected open parenthesis after macro function name not found.
I want to run this code: (and yes I know the path is correct and everything, but I still get an error)
1. Under Options/Preferences check box "Show custom code..."
2. Create a new SAS session,
3. Add at the very beginning of the code that throws the error the following statement:
options msglevel=i mprint merror mlogic;
4. Run your code
5. Share the COMPLETE SAS log with us (please post it via menu </> to the forum)
NB: Before you share your SAS log browse through it and remove all PII data like your user name.
What you also could check under Options/Autoexec file is if you've got any code there. If so then please share this code here as well.
Also, if that error sometimes goes away then I get this text and it still won't work:
Start by opening a new SAS session then open and run your program and post your complete SAS log if you still have problems.
Yes I am using SAS OnDemand for academics. I just updated my chrome so yes it is up to date. Don't have any add ons, but it still won't work.
I don't see a LIBNAME for a library named turu. Do you have some sort of other program or Studio environment setting for that?
I created the libaname beforehand so it should be fine, but even when I try to just save it to the work one it still won't work:
Also, I have some documents that worked before, but now even those don't work so there has to be some kind of problem (not in the code itself):
1. Under Options/Preferences check box "Show custom code..."
2. Create a new SAS session,
3. Add at the very beginning of the code that throws the error the following statement:
options msglevel=i mprint merror mlogic;
4. Run your code
5. Share the COMPLETE SAS log with us (please post it via menu </> to the forum)
NB: Before you share your SAS log browse through it and remove all PII data like your user name.
What you also could check under Options/Autoexec file is if you've got any code there. If so then please share this code here as well.
I actually didn't change anything, but it magically just started working again. Thank you though!
@StellaPals wrote:
I actually didn't change anything, but it magically just started working again. Thank you though!
Your initial message where it has this:
ERROR: Expected open parenthesis after macro function name not found.
would normally indicate to me that somewhere in your code SAS encountered something like
%something
that SAS interpretted as being a macro function code. At which point whatever followed that may have been treated as part of the macro code. Many macro related errors can cause SAS to become unstable and require restarting to clear the condition. Save code often.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.