Data visualization with SAS programming

escapechar problem

Reply
Occasional Contributor
Posts: 10

escapechar problem

Hello.
I am new to ODS and am having a problem with escapechar. The program below runs fine in placing a map into the document but the escapechar does not make the text change I specified. I received the SAS error message below about a missing parens, which is not clear to me. I run SAS 9.2. thanks.

data senatearea;
set sasdatap.senate_trial_unprj;
if district in ('03','04','05');
run;

ods escapechar="^";
ods listing close;
ods pdf body="c:\metafilesfromsas\ods\january20.pdf";
ods layout start columns=2 column_widths=(3.5in 3.5in);
ods region height=3.0in;
ods region height=3.0in;
proc gmap map=senatearea data=senatearea;
id district;
choro district / nolegend;
pattern1 v=solid c=red;
run;
quit;
ods region height=3.0in;
ods region height=3.0in;
ods pdf text="^S={font_weight=bold_font font_size=16pt} District Map";

ERROR 79-322: Expecting a (.
ERROR 76-322: Syntax error, statement will be ignored.


ods layout end;
run;
ods pdf close;
run;
Ask a Question
Discussion stats
  • 0 replies
  • 145 views
  • 0 likes
  • 1 in conversation