Hi everyone,
Today I created a code flow for autoexec code. However, when I run the first code about a macro as below, I saw some notes about white space as the log below, could you please help me to sort it out?
/*quickly assign means name*/
%macro Means (dataset =
,stats_list = );
proc means data= &dataset &stats_list;
title "MEANS of &dataset";
run;
%mend Means;
/*eg: %Means(sashelp.class,n nmiss);*/
%Means(dataset=sashelp.class, stats_list =n nmiss);
The log is as below
;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Normal'
_
49
3 ! ;
4 %LET _CLIENTPROCESSFLOWNAME='Autoexec_code'
___________________________
49
4 ! ;
5 %LET _CLIENTPROJECTPATH='C:\Users\pnguyen\OneDrive - Massey University\SAS\All SAS flows_since 29Dec2020.egp'
_______________________________
49
5 ! ;
6 %LET _CLIENTPROJECTPATHHOST='IT082760'
___________________________
49
6 ! ;
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.
7 %LET _CLIENTPROJECTNAME='All SAS flows_since 29Dec2020.egp';
8 %LET _SASPROGRAMFILE='';
9 %LET _SASPROGRAMFILEHOST='';
10
11 ODS _ALL_ CLOSE;
12 OPTIONS DEV=SVG;
13 GOPTIONS XPIXELS=0 YPIXELS=0;
NOTE: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation
marks.
14 %macro HTML5AccessibleGraphSupported;
7 %LET _CLIENTPROJECTNAME='All SAS flows_since 29Dec2020.egp';
__
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.
15 %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) >= 0 %then ACCESSIBLE_GRAPH;
16 %mend;
17 FILENAME EGHTML TEMP;
18 ODS HTML5(ID=EGHTML) FILE=EGHTML
19 OPTIONS(BITMAP_MODE='INLINE'
_
49
19 ! )
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.
Warmest regards.
You appear to have unbalanced quotes somewhere.
You also appear to be using some tool for submitting your code to SAS like SAS/Studio or Enterprise Guide.
First try re-starting your SAS session and see if the unbalanced quotes go away. You should be able to do that without closing the tool you are using to submit the code to SAS.
If that does not fix the issue then either your AUTOEXEC file or some other block of code that your user interface is inserting has the unbalanced quotes.
You appear to have unbalanced quotes somewhere.
You also appear to be using some tool for submitting your code to SAS like SAS/Studio or Enterprise Guide.
First try re-starting your SAS session and see if the unbalanced quotes go away. You should be able to do that without closing the tool you are using to submit the code to SAS.
If that does not fix the issue then either your AUTOEXEC file or some other block of code that your user interface is inserting has the unbalanced quotes.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.