BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mccombsj4
Calcite | Level 5

Every macro I run in sas studio produces the log below and doesn't generate results. I'm new to sas and macros. Please give me some direction on how to fix this.

 

Thanks,

James

 

Here is the log output

 

NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
2 TITLE;
3 FOOTNOTE;
4 OPTIONS LOCALE=en_US DFLANG=LOCALE;
5 DATA _NULL_;
86 &GRAPHTERM; ;*';*";*/;RUN;QUIT;
_________________
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.
 
6 RUN;
7 OPTIONS VALIDVARNAME=V7;
8 OPTIONS VALIDMEMNAME=COMPAT;
9 FILENAME _HTMLOUT TEMP;
10 FILENAME _RTFOUT TEMP ENCODING='UTF-8';
10 FILENAME _RTFOUT TEMP ENCODING='UTF-8'
_
49
10 ! ;
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.
 
11 FILENAME _PDFOUT TEMP;
12 FILENAME _GSFNAME TEMP;
13 FILENAME _DATAOUT TEMP;
14 %LET SYSCC=0;
15 %LET _CLIENTAPP='SAS Studio';
16 %LET _CLIENTAPPABREV=Studio;
17 %LET _CLIENTAPPVERSION=3.71;
18 %LET _CLIENTVERSION=3.71;
19 %LET _CLIENTMODE=basic;
NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.
20 %LET _SASSERVERNAME=%BQUOTE(localhost);
21 %LET _SASHOSTNAME=%BQUOTE(localhost);
22 %LET _SASPROGRAMFILEHOST=%BQUOTE(localhost);
23 %LET _CLIENTUSERID=%BQUOTE(sasdemo);
24 %LET _CLIENTUSERNAME=%BQUOTE(sasdemo);
25 %LET CLIENTMACHINE=%BQUOTE(10.0.2.2);
26 %LET _CLIENTMACHINE=%BQUOTE(10.0.2.2);
27 %let SASWORKLOCATION="%sysfunc(getoption(work))/";
28 FILENAME _CWD '.'
_
49
28 ! ;
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.
 
29 DATA _NULL_;
30 CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
____________
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.
 
31 RUN;
32 FILENAME _CWD;
33
34 %LET _SASPROGRAMFILE = %NRQUOTE(%NRSTR(/folders/myfolders/NHANES 7.8.18.sas));
35 %LET _BASEURL = %BQUOTE(http://localhost:10080/SASStudio/);
30 CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
____
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.
 
36 %LET _EXECENV=SASStudio;
37 DATA _NULL_;
38 CALL SYMPUT("GRAPHINIT","");
39 CALL SYMPUT("GRAPHTERM","");
40 RC=TSLVL('SASXGOPT','N');
41 _ERROR_=0;
42 IF (RC^=' ') THEN DO;
43 CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
44 CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
45 END;
46 RUN;
47 DATA _NULL_;
48 RC=SYSPROD("PRODNUM002");
49 IF (RC^=1) THEN DO;
NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.
50 CALL SYMPUT("GRAPHINIT","");
51 CALL SYMPUT("GRAPHTERM","");
52 END;
53 RUN;
54 %LET _DATAOUT_MIME_TYPE=;
55 %LET _DATAOUT_NAME=;
56 %LET _DATAOUT_TABLE=;
57 %LET _DATAOUT_URL=;
58 %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
59 %LET _SASWS_ = %BQUOTE(/folders/myfolders);
42 IF (RC^=' ') THEN DO;
___________
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.
 
60 %LET _SASWSTEMP_=%BQUOTE(/folders/myfolders/.sasstudio/.images/51192620-167d-4057-897c-d799bff2af36);
61 ODS LISTING CLOSE;
62 ODS AUTONAVIGATE OFF;
63 ODS GRAPHICS ON;
64 ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&_SASWSTEMP_" ENCODING=utf8 FILE=_HTMLOUT (TITLE='Results: NHANES
64 ! 7.8.18.sas') STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' OUTLINE='ON' SVG_MODE='INLINE'
_______________________________________ ___________ ____________
49 49 49
64 ! CSS_PREFIX='.ods_51192620-167d-4057-897c-d799bff2af36' BODY_ID='div_51192620-167d-4057-897c-d799bff2af36' );
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.
 
65 ODS RTF (ID=WEB) STYLE=Rtf FILE=_RTFOUT sasdate;
66 ODS PDF (ID=WEB) STYLE=Pearl FILE=_PDFOUT;
67 &GRAPHINIT;
68 OPTIONS FIRSTOBS=1;
69 OPTIONS OBS=MAX;
70 OPTIONS DTRESET DATE NUMBER NOTES;
NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.
71 OPTIONS NOTES STIMER SOURCE NOSYNTAXCHECK;
72
73 %printz(purple,red,blue,teal)
74
75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
76 ODS HTML CLOSE;
77 &GRAPHTERM; ;*';*";*/;RUN;QUIT;
78 QUIT;RUN;
79 ODS HTML5 (ID=WEB) CLOSE;
80
81 ODS RTF (ID=WEB) CLOSE;
82 ODS PDF (ID=WEB) CLOSE;
83 FILENAME _GSFNAME;
84 DATA _NULL_;
85 RUN;
86 OPTIONS VALIDMEMNAME=COMPAT;
87 OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
88
 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

This NOTE points to the problem:

NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.

 

You have unbalanced quotes in code you sent upstream, and it has left the workspace server in a more-or-less uncontrollable state. Restart your Studio session to get a new workspace server, and inspect your code for unbalanced quotes.

View solution in original post

1 REPLY 1
Kurt_Bremser
Super User

This NOTE points to the problem:

NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.

 

You have unbalanced quotes in code you sent upstream, and it has left the workspace server in a more-or-less uncontrollable state. Restart your Studio session to get a new workspace server, and inspect your code for unbalanced quotes.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 785 views
  • 0 likes
  • 2 in conversation