Desktop productivity for business analysts and programmers

Many "notes" 49-169

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Many "notes" 49-169

I called macro variables in the first one. BUUUT i got this ERROR. What can i do ?

 

 

Attachment

Accepted Solutions
Solution
‎02-01-2017 03:13 AM
Trusted Advisor
Posts: 1,061

Re: Many "notes" 49-169

That odd piece of code that's throwing the error is put in by SAS Enterprise Guide, possibly among other products, to try to catch instances of unbalanced quotes, comments, etc.

 

I've got that error a number of times, and that has always been the problem. To get clearer information, right click on your server in the "Server List" and pick Disconnect. That will get rid of your old SAS session. Then run your code; you should get more useful diagnostics.

 

Tom

View solution in original post


All Replies
Esteemed Advisor
Esteemed Advisor
Posts: 7,249

Re: Many "notes" 49-169

Why are you running this code:

;*';*";*/;quit;run;

 

It looks like some macro variable or code is not written correctly and you are trying to fix it later on by closing all quotes and such like.  

I cannot however tell from what you have posted.  Step through your progam and find out where the problem starts, maybe your missing a quote (which is kind of what the note is saying) or perhaps something else is happening.

Occasional Contributor
Posts: 10

Re: Many "notes" 49-169

And what was that ? where is mistakes?

Esteemed Advisor
Esteemed Advisor
Posts: 7,249

Re: Many "notes" 49-169

I am not sure how I am supposed to know, you haven't provided any relevant information.  All I have is a small bit of code and 2 notes in a picture.  As I said the notes are indicative to text strings which have not been closed properly, broken macros, or very long strings and this:

;*';*";*/;quit;run;

Is some attempt to fix it.  Other than that I have nothing to work with.

Occasional Contributor
Posts: 10

Re: Many "notes" 49-169

I'VE ADDED 2 PICTURE.

 

Please, help me

 

Attachment
Attachment
Esteemed Advisor
Posts: 6,698

Re: Many "notes" 49-169

Check your code for unbalanced quotes, especially in connection with macro variables and calling them.

If that does not give you a clue, post the log (where those NOTEs appear). Post rather too much than too little.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Esteemed Advisor
Posts: 6,698

Re: Many "notes" 49-169

These notes usually appear when a quoted string is immediately followed by a non-blank character. With unbalanced quotes, the (by you) intended start of a string looks to the SAS interpreter like the end of a very long string.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 10

Re: Many "notes" 49-169

IS IT CORRECT ???

 

 

 

*PATH AND LIBRARY;
%let PATH = E:\datafolder\Optimization\AGR;
libname AGR 'E:\datafolder\Optimization';
*options noquotelenmax nosource nonotes;
options noquotelenmax source notes;

 

Grand Advisor
Posts: 10,239

Re: Many "notes" 49-169

NOTES are not errors. The specific note relates to using code that may have something like Put "this is quoted text"variablename. or quoted text followed by any instruction such as "text"run;

SAS is saying that the future behavior might change so that the results from such code might change in future releases. If your intent is to write a string followed bythe value of a variable, or macro variable, without a space then perhaps consider using a concatenation function to explicitly create the desired string value an then use that value or place a space between the quoted text and the next identifier be it variable name or program statement such as Run Quit or other reserved word.

Solution
‎02-01-2017 03:13 AM
Trusted Advisor
Posts: 1,061

Re: Many "notes" 49-169

That odd piece of code that's throwing the error is put in by SAS Enterprise Guide, possibly among other products, to try to catch instances of unbalanced quotes, comments, etc.

 

I've got that error a number of times, and that has always been the problem. To get clearer information, right click on your server in the "Server List" and pick Disconnect. That will get rid of your old SAS session. Then run your code; you should get more useful diagnostics.

 

Tom

Occasional Contributor
Posts: 10

Re: Many "notes" 49-169

What's going on with this ??? What a problem? WHat is this?

Attachment
Attachment
Attachment
Attachment
Trusted Advisor
Posts: 1,061

Re: Many "notes" 49-169

The first one is program code. I'm not sure what you're asking. The second, third, and fourth are the same problem, somewhere an unbalanced double quote is getting SAS confused. I'm afraid your only option is to examine your code to figure out where it's happening. The problem is usually not where the error message occurs.

 

Tom

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 11 replies
  • 255 views
  • 3 likes
  • 5 in conversation