Desktop productivity for business analysts and programmers

Error SAS Guide

Reply
Occasional Learner
Posts: 1

Error SAS Guide

I tried to run a very simple data step in EG but I always received the following message from the automatic sas macro:

No idea how to get rid of it:

 

1 %_eg_hidenotesandsource;

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

3 OPTIONS PAGENO=MIN;

4 %_eg_restorenotesandsource;

5 %_eg_hidenotesandsource;

6

7 %LET _CLIENTTASKLABEL='Program2';

8 %LET _CLIENTPROJECTPATH='K:\DATA\EG projects\Data_Collection_SERVER - DRAFT2.egp';

9 %LET _CLIENTPROJECTNAME='Data_Collection_SERVER - DRAFT2.egp';

10 %LET _SASPROGRAMFILE=;

11

____________________________________________________________________________________

49

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.

12 ODS _ALL_ CLOSE;

13 OPTIONS DEV=ACTIVEX;

14 GOPTIONS XPIXELS=0 YPIXELS=0;

15 FILENAME EGSR TEMP;

16 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR STYLE=Seaside

16 ! STYLESHEET=(URL="file:///Q:/RU044873.001/VFS/SFT_PROGRAM_FILES_X64/SASHome/x86/SASEnterpriseGuide/5.1/Styles/Seaside.css"

____________________________________________________________________________

 

49

16 ! ) NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation ENCODING=UTF8 options(rolap="on");

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.

17

18 GOPTIONS ACCESSIBLE;

19 %_eg_restorenotesandsource;

20

21 /* Insert custom code before submitted code here */

22

23

24

25 data test;

26 i=1;

27 run;

28

29 %_eg_hidenotesandsource;

30

31 GOPTIONS NOACCESSIBLE;

32 %LET _CLIENTTASKLABEL=;

33 %LET _CLIENTPROJECTPATH=;

34 %LET _CLIENTPROJECTNAME=;

35 %LET _SASPROGRAMFILE=;

36

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

38 ODS _ALL_ CLOSE;

39

40 %_eg_restorenotesandsource;

41

42

43 %_eg_hidenotesandsource;

44 QUIT; RUN;

2 The SAS System 09:15 Tuesday, February 9, 2016

45 %_eg_restorenotesandsource;

 

 

PROC Star
Posts: 1,262

Re: Error SAS Guide

I'm wondering if maybe you have a character set issue. When I have this problem, I try this:

 

1. Copy your code to MS Word.

2. In Word, do "Save As..."

3. Select a type of "Plain Text"

4. In the "File Conversion" screen, pick "Windows (Default)"

 

Open this file in Notepad, and then copy it back into EG. Try running it, and see what happens.

 

Tom

Occasional Learner
Posts: 1

Re: Error SAS Guide

This same error message has been bedevilling me. I never get it the first time I run a program. But at some point, when I return to a program and re-run it, SAS (EG) gets it into its brain that I am creating a long character string. I can't figure it out. And the only thing that works is to exit EG entirely and then restart the application -- painful when you are 3/4 of the way into a long process. I think I most often experience this when I am calling a macro from another program with the "include" statement.

Super User
Posts: 3,763

Re: Error SAS Guide

Try this:

 

options noquotelenmax;
New Contributor
Posts: 4

Re: Error SAS Guide

Hi, did you solve this problem? it is a pain for me. 

Super User
Posts: 3,763

Re: Error SAS Guide

Posted in reply to HappySASUE

This option will suppress the note:

 

options noquotelenmax;
New User
Posts: 1

Re: Error SAS Guide

This error and another that gets contemporaneously shown on the same log regarding breaching 256 bytes can be rubbish.  I spent over an hour trying to debug and couldn't find anything wrong whatsoever.  I bounced it off other successful macros I've written.  I was pulling my hair out.  I then decided to close the EG session, restart, and run again.  The macro ran as intended with zero errors.  There is something else going on with SAS and this error.  Please escalate! This was painful for absolutely no reason.

Senior User
Posts: 1

Re: Error SAS Guide

Posted in reply to ARodriguez23219

I get exactly the same......macro runs fine if I open new session with exactly the same code.

 

Once error occurs, you cannot run any further code or even a simple query in that session without the error occurring.

Super User
Posts: 3,763

Re: Error SAS Guide

Posted in reply to mwalmsley24

That message is a NOTE, not an error and will not prevent further SAS processing. If you are unable to run further code then an unbalanced quote is likely to have occurred and the note is merely a symptom of this.

 

If you want us to diagnose your code please post your log, preferably in a new post. You can always reference this post in your new one if you like.

Ask a Question
Discussion stats
  • 8 replies
  • 2376 views
  • 1 like
  • 7 in conversation