Macro program 3.10 demo, I got a warning message. Please resolve this issue

6 views
Skip to first unread message

Thirumagal manivannan

unread,
Oct 23, 2014, 10:35:59 AM10/23/14
to anova...@googlegroups.com
Hi,
Macro program 3.10 demo, I got a warning message. Please resolve this issue.

Demo code

macro count(opts=,start=01jan04,stop=31dec04);
proc freq data=orion3.orders;
where order_date between "&start"d and "&stop"d;
table order_type / &opts;
title1 "Orders from &start to &stop"
run;
mend;
options mprint;
%count()
%count(nocum)
%count(stop=30jun04,start=01apr04)
%count(nocum nopercent,stop=30jun04)
Log 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
2 OPTIONS LOCALE=en_US DFLANG=LOCALE;
3 FILENAME _WEBOUT TEMP;
4 FILENAME _RTFOUT TEMP ENCODING='UTF-8';
5 FILENAME _PDFOUT TEMP ;
6 OPTIONS PRINTERPATH=PDF;
7 FILENAME _GSFNAME TEMP;
8 FILENAME _DATAOUT TEMP;
9 %LET SYSCC=0;
49 ;*';*";*/;QUIT;RUN;
______________
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.
10 %LET _CLIENTAPP=SAS Studio;
11 %LET _CLIENTAPPVERSION=3.1;
12 %LET _SASPROGRAMFILE = %BQUOTE(/folders/myshortcuts/batch5/homework/Tmani/Program3/4.3.10.sas);
13 DATA _NULL_;
14 CALL
14 ! SYMPUT("GRAPHINIT"
_
49
14 ! ,"");
15 CALL
15 ! SYMPUT("GRAPHTERM"
_
49
15 ! ,"");
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.
16 RC=TSLVL('GEOCODE');
17 _ERROR_=0;
18 IF (RC^=' ' ) THEN DO;
19 CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
___ ________________
49 49
20 CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
___
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.
21 END;
22 RUN;
23 %LET _DATAOUT_MIME_TYPE=;
24 %LET _DATAOUT_NAME=;
25 %LET _DATAOUT_TABLE=;
26 %LET _DATAOUT_URL=;
27 %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
28 %LET _SASWS_ = %BQUOTE(/folders/myfolders);
29 %LET _SASWSTEMP_=%BQUOTE(/folders/myfolders/.images/8445b52b-0a9e-409a-91a7-318cd8a3bdf4);
WARNING: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation
marks.
30 ODS LISTING CLOSE;
31 ODS LISTING GPATH="&_SASWSTEMP_";
32 ODS AUTONAVIGATE OFF;
33 ODS GRAPHICS ON;
34 ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&_SASWSTEMP_" ENCODING=utf8 FILE=_WEBOUT (TITLE='Results: 4.3.10.sas')
34 ! STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' SVG_MODE='INLINE' CSS_PREFIX='#ods_8445b52b-0a9e-409a-91a7-318cd8a3bdf4'
34 ! BODY_ID='div_8445b52b-0a9e-409a-91a7-318cd8a3bdf4' );
35 ODS RTF (ID=WEB) STYLE=Rtf FILE=_RTFOUT
WARNING: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation
marks.
36 ;ODS PDF (ID=WEB) STYLE=Pearl FILE=_PDFOUT
37 ;&GRAPHINIT;
38 OPTIONS FIRSTOBS=1;
39 OPTIONS OBS=MAX;
40 OPTIONS DTRESET DATE NUMBER NOTES;
41 OPTIONS NOTES STIMER SOURCE NOSYNTAXCHECK;
42 ;
43 macro count(opts=,start=01jan04,stop=31dec04);
44 proc freq data=orion3.orders;
45 where order_date between "&start"d and
45 ! "&stop"
_
49
45 ! d;
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.
46 table order_type / &opts;
47 title1 "Orders from &start to &stop"
48 run;
49 mend;
50 options mprint;
51 %count()
52 %count(nocum)
53 %count(stop=30jun04,start=01apr04)
54 %count(nocum nopercent,stop=30jun04)
55 ;
56 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
57 ODS HTML CLOSE;
58 &GRAPHTERM;
59 ;*';*";*/;QUIT;RUN;
60 QUIT;RUN;
61 ODS HTML5 (ID=WEB) CLOSE;
62 ODS RTF (ID=WEB) CLOSE;
63 ODS PDF (ID=WEB) CLOSE;
64 FILENAME _GSFNAME;
65 OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
66 ;

Anova Groups

unread,
Oct 24, 2014, 10:07:32 AM10/24/14
to anova...@googlegroups.com
Close your SAS studio and resubmit your code. The errors in your code don't seem to be coming from your code but something that Studio does automatically. So please close studio completely and retry your code.

Also check your code for typos like % sign from macro and mend keyword is missing. Also semicolon is missing from title statement.

AS I HAVE TOLD MULTIPLE TIMES, FIRST YOU HAVE TO WRITE A SIMPLE CODE OUTSIDE OF MACRO AND MAKE SURE IT IS WORKING PROPERLY AND THEN TRY TO GENERALIZE IT BY ENCAPSULATING IT BETWEEN %MACRO AND %MEND.
Reply all
Reply to author
Forward
0 new messages