<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unicode in a format to change output of proc template and proc sgender in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276583#M9867</link>
    <description>&lt;P&gt;Sorry, I do know about ods escapechar, but it still doesn't work. ( updated code with it in there)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
value age
1="&amp;lt; 5 Years"
2="^{unicode '2265'x} 5 Years";
run;

data race;
infile datalines dlm=',';
input age score;
datalines;
1,12
2,14
1,17
1,10
2,7
2,4
1,6
2,8
;
run;
options orientation=landscape;
ods escapechar='^';

proc template;                                                                
  define statgraph plot_race;
  begingraph /border=false designwidth=800px designheight=500px;
  layout overlay/walldisplay=none 
		yaxisopts=(label="Scroe" 
        			linearopts=(tickvaluelist=(0 5 10 15 20) viewmin=0 viewmax=20))
        xaxisopts=(Label="age" type=linear display=(line ticks tickvalues)
                                       linearopts=(	tickvaluelist=(1 2)  
                                                   	tickvalueformat=age.
												 	tickvaluefitpolicy=none));

        scatterPlot x=eval(0.08*rannor(57)+age) y=score /  name="sp1"
                    markerAttrs=GraphData1 
                    dataTransparency=0.5;
        boxplot x=age y=score /boxwidth=0.2  display=(caps mean median)
                    meanAttrs=(symbol=plus);
      endlayout;           
    endgraph;                                                               
  end;                                                                       
run;

ods rtf file="Test Score" style=myjournal BODYTITLE_AUX nogtitle nogfootnote;
ods graphics/ height= 4in width=6.4in;

title1 "Results";

proc sgrender data=race template=plot_race;
run;

ods rtf close;
ods listing;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jun 2016 18:26:12 GMT</pubDate>
    <dc:creator>rbikes</dc:creator>
    <dc:date>2016-06-10T18:26:12Z</dc:date>
    <item>
      <title>Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276580#M9866</link>
      <description>&lt;P&gt;Hi everyone, I have this fomat that has a unicode for greater or equal to and would like to use a chatagory in a graph similar to the output of this example code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks ahead of time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
value age
1="&amp;lt; 5 Years"
2="^{unicode '2265'x} 5 Years";
run;

data race;
infile datalines dlm=',';
input age score;
datalines;
1,12
2,14
1,17
1,10
2,7
2,4
1,6
2,8
;
run;

proc template;                                                                
  define statgraph plot_race;
  begingraph /border=false designwidth=800px designheight=500px;
  layout overlay/walldisplay=none 
		yaxisopts=(label="Scroe" 
        			linearopts=(tickvaluelist=(0 5 10 15 20) viewmin=0 viewmax=20))
        xaxisopts=(Label="age" type=linear display=(line ticks tickvalues)
                                       linearopts=(	tickvaluelist=(1 2)  
                                                   	tickvalueformat=age.
												 	tickvaluefitpolicy=none));

        scatterPlot x=eval(0.08*rannor(57)+age) y=score /  name="sp1"
                    markerAttrs=GraphData1 
                    dataTransparency=0.5;
        boxplot x=age y=score /boxwidth=0.2  display=(caps mean median)
                    meanAttrs=(symbol=plus);
      endlayout;           
    endgraph;                                                               
  end;                                                                       
run;

ods rtf file="Test Score" style=myjournal BODYTITLE_AUX nogtitle nogfootnote;
ods graphics/ height= 4in width=6.4in;

title1 "Results";

proc sgrender data=race template=plot_race;
run;

ods rtf close;
ods listing;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276580#M9866</guid>
      <dc:creator>rbikes</dc:creator>
      <dc:date>2016-06-10T18:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276583#M9867</link>
      <description>&lt;P&gt;Sorry, I do know about ods escapechar, but it still doesn't work. ( updated code with it in there)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
value age
1="&amp;lt; 5 Years"
2="^{unicode '2265'x} 5 Years";
run;

data race;
infile datalines dlm=',';
input age score;
datalines;
1,12
2,14
1,17
1,10
2,7
2,4
1,6
2,8
;
run;
options orientation=landscape;
ods escapechar='^';

proc template;                                                                
  define statgraph plot_race;
  begingraph /border=false designwidth=800px designheight=500px;
  layout overlay/walldisplay=none 
		yaxisopts=(label="Scroe" 
        			linearopts=(tickvaluelist=(0 5 10 15 20) viewmin=0 viewmax=20))
        xaxisopts=(Label="age" type=linear display=(line ticks tickvalues)
                                       linearopts=(	tickvaluelist=(1 2)  
                                                   	tickvalueformat=age.
												 	tickvaluefitpolicy=none));

        scatterPlot x=eval(0.08*rannor(57)+age) y=score /  name="sp1"
                    markerAttrs=GraphData1 
                    dataTransparency=0.5;
        boxplot x=age y=score /boxwidth=0.2  display=(caps mean median)
                    meanAttrs=(symbol=plus);
      endlayout;           
    endgraph;                                                               
  end;                                                                       
run;

ods rtf file="Test Score" style=myjournal BODYTITLE_AUX nogtitle nogfootnote;
ods graphics/ height= 4in width=6.4in;

title1 "Results";

proc sgrender data=race template=plot_race;
run;

ods rtf close;
ods listing;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276583#M9867</guid>
      <dc:creator>rbikes</dc:creator>
      <dc:date>2016-06-10T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276584#M9868</link>
      <description>&lt;P&gt;In format definition, you must use the full default escape character -&amp;nbsp;(*ESC*).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276584#M9868</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-10T18:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276585#M9869</link>
      <description>&lt;P&gt;Use the full escape designation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value age
1="&amp;lt; 5 Years"
2="(*ESC*){unicode '2265'x} 5 Years";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the article &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/" target="_self"&gt;"Unicode in Formatted Data - SAS 9.40M3"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276585#M9869</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-10T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276982#M9876</link>
      <description>&lt;P&gt;Thank you Sanjayand&amp;nbsp;RIck for responding. But uncofcentialy when I added in the (*ESC*) within the format it still donest work. I am running SAS 9.3 TS level 1M2 on windows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc format;
value age
1="&amp;lt; 5 Years"
2="(*ESC*){unicode '2265'x} 5 Years";
run;

data race;
infile datalines dlm=',';
input age score;
datalines;
1,12
2,14
1,17
1,10
2,7
2,4
1,6
2,8
;
run;

proc template;                                                                
  define statgraph plot_race;
  begingraph /border=false designwidth=800px designheight=500px;
  layout overlay/walldisplay=none 
		yaxisopts=(label="Scroe" 
        			linearopts=(tickvaluelist=(0 5 10 15 20) viewmin=0 viewmax=20))
        xaxisopts=(Label="age" type=linear display=(line ticks tickvalues)
                                       linearopts=(	tickvaluelist=(1 2)  
                                                   	tickvalueformat=age.
												 	tickvaluefitpolicy=none));

        scatterPlot x=eval(0.08*rannor(57)+age) y=score /  name="sp1"
                    markerAttrs=GraphData1 
                    dataTransparency=0.5;
        boxplot x=age y=score /boxwidth=0.2  display=(caps mean median)
                    meanAttrs=(symbol=plus);
      endlayout;           
    endgraph;                                                               
  end;                                                                       
run;

ods rtf file="C:\Users\[NAME]\Downloads\Test Score" style=myjournal BODYTITLE_AUX nogtitle nogfootnote;
ods graphics/ height= 4in width=6.4in;

options orientation=landscape;
ods escapechar='^';

title1 "Results";

proc sgrender data=race template=plot_race;
run;

ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276982#M9876</guid>
      <dc:creator>rbikes</dc:creator>
      <dc:date>2016-06-13T16:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276991#M9877</link>
      <description>&lt;P&gt;Since this is an "aggregating" format, you should not put it on the TICKVALUEFORMAT option. Put it on the FORMAT statement in PROC SGRENDER:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgrender data=race template=plot_race;
format age age.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276991#M9877</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-06-13T16:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276992#M9878</link>
      <description>&lt;P&gt;This feature is only available with SAS 9.40M3 onwards.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/276992#M9878</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-13T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in a format to change output of proc template and proc sgender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/277348#M9880</link>
      <description>&lt;P&gt;I found a solution, it was from moving the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;linearopts=(
tickvaluelist=(1 2)  
 tickdisplaylist= ("&amp;lt; 5 Years" "^{unicode '2265'x} 5 Years")												 	tickvaluefitpolicy=none
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;unicode from the format to the tickdisplaylist. It looks like the following:&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-in-a-format-to-change-output-of-proc-template-and-proc/m-p/277348#M9880</guid>
      <dc:creator>rbikes</dc:creator>
      <dc:date>2016-06-14T19:04:31Z</dc:date>
    </item>
  </channel>
</rss>

