BookmarkSubscribeRSS Feed
Sean_OConnor
Fluorite | Level 6

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?  

7 REPLIES 7
Astounding
PROC Star

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.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

ChrisHemedinger
Community Manager

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.

 

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Kurt_Bremser
Super User

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.

Juanjuan
Fluorite | Level 6

I am writing to you to confirm if your issue has been fixed. I also met same errors. 

Kurt_Bremser
Super User

@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.

Juanjuan
Fluorite | Level 6

thanks a lot.

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!

SAS Enterprise Guide vs. SAS Studio

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.

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
  • 7 replies
  • 2985 views
  • 2 likes
  • 6 in conversation