Folks,
I've a strange issue which perhaps somebody could shed some light on.
For some reason SAS has stopped working for me and has thrown up strange errors. For example, the following piece of code creates the following error.
%let year = 2015;
%put &year.;
1 %_eg_hidenotesandsource;
2 ;*';*";*/;quit;run;
2 ;*'
_
49
2 ! ;*";*/;quit;run;
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space
between a quoted string and the succeeding identifier is recommended.
This is inexplicable. I'm worker on a server and have tried changing to a different one, yet the same error occurs. Basically, nothing will run. Does anyone have any idea why this may occur?
Have you tried getting rid of the first line (%_eg_hidenotesandsource) ? I sure sounds like that's doing what is designed to do, to hide the results.
Best way to hide probelms in your code:
%_eg_hidenotesandsource;
Best way to try and fix them:
;*';*";*/;quit;run;
;*'
The above two statements are false of course. Notes, warnings, errors, are specifically there to show what code is running, what problems may occur etc. thus hiding parts of it really isn't good, as you find now where you cannot see where the problem is.
Start a clean session, remove that macro call, then lok at the code fully in the log window, ienditfy where - something is misquoted, too long, invalid calls etc.
You might have some rogue code in an autoexec, or in the code that is submitted automatically when you connect. Check Tools->Options->SAS Programs for anything in the "Submit SAS code when server is connected" field. Also examine the log in the workspace start up, using these instructions.
Somewhere in the run-up to that you have an unbalanced single quote. Might be an autoexec on the server side (less probable), or one of the autoexec-like functions in EG that you used to send code before every execution or when connecting to the server (very probable).
So search in the Tools - Options for code to be automatically sent to the server.
I am writing to you to confirm if your issue has been fixed. I also met same errors.
@Juanjuan wrote:
I am writing to you to confirm if your issue has been fixed. I also met same errors.
This question thread is more than a year old. Nobody will see your post but the original participants.
Please post your question in a new thread, and supply code and log for diagnosis.
thanks a lot.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.