Macro 5.2.14, demo I got 2 warning messages.Please explain about this

39 views
Skip to first unread message

Thirumagal manivannan

unread,
Oct 23, 2014, 3:14:33 PM10/23/14
to anova...@googlegroups.com
Hi,
Macro 5.2.14, Demo, I got 2 warning messages.Please explain about this

Code

%macro reports;
proc print data=orion3.order_fact;
where order_date="&sysdate9"d;
var product_id total_retail_price;
title "Daily sales: &sysdate9";
run;
%if &sysday=Friday %then %do;
proc means data=orion3.order_fact n sum mean;
where order_date between "&sysdate9" - 6 and "&sysdate9"d;
var quantity total_retail_price;
title "Weekly Sales: &sysdate9";
run;
%mend reports;
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;
62 ;*';*";*/;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/5.2.14.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/5f0b2a29-8d91-47cb-b0d3-a5c59cdcb475);
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: 5.2.14.sas')
34 ! STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' SVG_MODE='INLINE' CSS_PREFIX='#ods_5f0b2a29-8d91-47cb-b0d3-a5c59cdcb475'
34 ! BODY_ID='div_5f0b2a29-8d91-47cb-b0d3-a5c59cdcb475' );
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
44 %macro reports;
45 proc print data=orion3.order_fact;
46 where order_date="&sysdate9"d;
47 var product_id total_retail_price;
48 title "Daily sales: &sysdate9";
49 run;
50 %if &sysday=Friday %then %do;
51 proc means data=orion3.order_fact n sum mean;
52 where order_date between "&sysdate9" - 6 and
52 ! "&sysdate9"
_
49
52 ! 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.
53 var quantity total_retail_price;
54 title "Weekly Sales: &sysdate9";
55 run;
56 %mend;
57
58 ;
59 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
60 ODS HTML CLOSE;
61 &GRAPHTERM;
62 ;*';*";*/;QUIT;RUN;
63 QUIT;RUN;
64 ODS HTML5 (ID=WEB) CLOSE;
65 ODS RTF (ID=WEB) CLOSE;
66 ODS PDF (ID=WEB) CLOSE;
67 FILENAME _GSFNAME;
68 OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
69 ;



Anova Groups

unread,
Oct 24, 2014, 10:14:35 AM10/24/14
to anova...@googlegroups.com
The syntax for %if is same as if statement, you are missing %end for the %if %do. 
Reply all
Reply to author
Forward
0 new messages