<?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 for lables of panels in sgpanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/333071#M11610</link>
    <description>&lt;P&gt;We can't "try it" we don't have your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 16:16:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-02-15T16:16:03Z</dc:date>
    <item>
      <title>Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332764#M11587</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sgpanel procedure to get a graphs by panel treatmnt.&lt;/P&gt;&lt;P&gt;and I want to have a "TRT A (5x1010 )&amp;nbsp;" and "TRT B &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;5x10&lt;/SPAN&gt;11&amp;nbsp;&lt;SPAN&gt;)&lt;/SPAN&gt;" and "Placebo" in the labels of treatment.&lt;/P&gt;&lt;P&gt;I used TRT A 5x10{sup '10'} but it's not work and i used also unicode but not thing is working like if sgpanel not accepte Unicode in labels of pnels.&lt;/P&gt;&lt;P&gt;here is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT ;
VALUE dy 1 = '1 '
29='29'
OTHER =' ';

value trtn 1= "TRT A 5x10{sup '10'}"
2="TRT B 1x10{sup '11'}"
3='Placebo';

RUN;
&amp;nbsp;
PROC SGPANEL DATA=im02 sganno=anno noautolegend pad=(left=10% bottom=10%);
TITLE "Title 1";
FORMAT bas1c dy.;
FORMAT vis dy.;
format trtgpn trtn.;
PANELBY TRTGPN / columns=3 layout=COLUMNLATTICE sparse SPACING=3 novarname colheaderpos=top uniscale=all;;
......
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i Got :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7230iC3421D835780C036/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Sans titre.png" title="Sans titre.png" width="638" height="356" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 18:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332764#M11587</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2017-02-14T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332767#M11588</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS ESCAPECHAR='^';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;FORMAT&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;VALUE&lt;/SPAN&gt; dy &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'1 '&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;29&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'29'&lt;/SPAN&gt;
OTHER &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token keyword"&gt;value&lt;/SPAN&gt; trtn &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"TRT A 5x10^{super 10}"&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;2&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"TRT B 1x10^{super 11}"&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;3&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'Placebo'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;RUN&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332767#M11588</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2017-02-14T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332769#M11589</link>
      <description>&lt;P&gt;Assuming you are running SAS 9.4m3 or greater, you can do it like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $sup
   'F'="TRT A 5x10(*ESC*){unicode '00b9'x}(*ESC*){unicode '2070'x}"
   'M'="TRT B 1x10(*ESC*){unicode '00b9'x}(*ESC*){unicode '00b9'x}"
;
run;

proc sgpanel data=sashelp.class;
format sex $sup.;
panelby sex / novarname headerattrs=GraphUnicodeText;
scatter x=weight y=height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I set the header font to a more fully-defined Unicode font to handle the superscript 0. Otherwise, it might have shown up just as a box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13444i8A076B1DC6B9FE59/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SGPanel4.png" title="SGPanel4.png" /&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332769#M11589</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-14T19:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332770#M11590</link>
      <description>&lt;P&gt;The SUP and SUB keywords do not work for ODS Graphics when doing inline escapements in PROC FORMAT. Only the Unicode function is supported, starting in SAS 9.4m3.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332770#M11590</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-14T19:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332771#M11591</link>
      <description>&lt;P&gt;Also, when doing this in PROC FORMAT, you must use the default escape sequence (*ESC*). The ODS ESCAPECHAR definition is not supported there.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332771#M11591</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-14T19:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332775#M11592</link>
      <description>&lt;P&gt;Thanks Ahmed ,Thanks Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for sup as Dan Sayed is not supported in GTL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunatly Dan I'm using SAS9.3..and i use your code and it's not work, but what I don't understand that unicode works in annotate but not in format and sgpanel!!&lt;/P&gt;&lt;P&gt;do you have another solution?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332775#M11592</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2017-02-14T19:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332824#M11596</link>
      <description>No solution with SAS 9.3??</description>
      <pubDate>Tue, 14 Feb 2017 22:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332824#M11596</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2017-02-14T22:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332877#M11597</link>
      <description>&lt;P&gt;Unicode support is a bit inconsistent as it was clipped on at various stages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A summary of its implementation (note the bug with sas/graph) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%***************** ODS GRAPH **********;
proc format ;
  value $sup_sg
    'F'="TRT A 5x10(*ESC*){unicode '00b9'x}(*ESC*){unicode '2070'x}"
    'M'="TRT B 1x10(*ESC*){unicode '00b9'x}(*ESC*){unicode '00b9'x}" ;
ods graphics on / width=320px height=240px;
proc sgpanel data=SASHELP.CLASS;
  format SEX $sup_sg.;
  panelby SEX / novarname headerattrs=GraphUnicodeText;
  scatter x=WEIGHT y=HEIGHT;
run;


%***************** ODS REPORT **********;
ods escapechar='^';
proc format ;
  value $sup_ods 'F'="TRT A 5x10^{super 10}"
                 'M'="TRT B 1x10^{super 11}"  ;
proc freq data=SASHELP.CLASS;
  format SEX $sup_ods.;
  table SEX;
run;       


%***************** SAS/GRAPH **********;
%let a=%sysfunc(unicodec(TRT A 5x10, utf16b),$hex40.)00b92070;
%let b=%sysfunc(unicodec(TRT B 1x10, utf16b),$hex40.)00b900b9;
legend value=(font="arial unicode ms/unicode" "&amp;amp;a"x "&amp;amp;b"x) ;
goptions ypixels=240 xpixels=320;
proc gplot data=SASHELP.CLASS;
  plot WEIGHT*AGE=SEX/legend=legend1;
  run; 
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7236i7F3A8F2B71C493D7/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332877#M11597</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-02-15T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332947#M11598</link>
      <description>&lt;P&gt;Thanks ChrisZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I follow your recommandations here are my code (just to try) :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let b=%sysfunc(unicodec(TRT B 1x10, utf16b),$hex40.)00b900b9;

PROC FORMAT ;
   VALUE dy  1    = '1 '
             29='29'
             OTHER =' ';
  value trtn 1="&amp;amp;b x"
             2='TRT A (1x10^11 vp)'
             3='Placebo';
RUN;

PROC SGPANEL DATA=im02 SGANNO=anno noautolegend pad=(left=10% bottom=10%);
  title "title 1";

  FORMAT trtgpn trtn.;
  PANELBY TRTGPN   / columns=3 LAYOUT=COLUMNLATTICE  sparse SPACING=3 novarname  colheaderpos=bottom uniscale=all;;
.......................;
.......................;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And&amp;nbsp;I got :&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7239i8A72C95E7C4C685A/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Sans titre.png" title="Sans titre.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what happened..it's like SAS or proc sgpanel didnt convert in rigth way the code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/332947#M11598</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2017-02-15T11:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/333071#M11610</link>
      <description>&lt;P&gt;We can't "try it" we don't have your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/333071#M11610</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-15T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/333145#M11611</link>
      <description>&lt;P&gt;You didn't follow the recommendations as:&lt;/P&gt;
&lt;P&gt;1- you moved the x suffix inside the quotes&lt;/P&gt;
&lt;P&gt;2- this method with the hex suffix is not to be used for sg procedures anyway. These use the first example's syntax.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/333145#M11611</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-02-15T20:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode for lables of panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/334926#M11648</link>
      <description>&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the probleme had been fixed by using now SAS 9.4 &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-for-lables-of-panels-in-sgpanel/m-p/334926#M11648</guid>
      <dc:creator>statsas</dc:creator>
      <dc:date>2017-02-22T12:50:23Z</dc:date>
    </item>
  </channel>
</rss>

