<?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: For those interested in crypto - ₿ Bitcoin SAS Format – $bitcoin. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/448560#M112841</link>
    <description>&lt;P&gt;The syntax to use Unicode characters varies wildly, depending on where in SAS one uses them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/GRAPH titles require a different syntax than SAS/GRAPH legends, which is again different from what ODS Graphs understands,&amp;nbsp;which is also different from what ODS reports need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a summary of my findings. I am just displaying an exponent here, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graph&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturegrp.PNG" style="width: 185px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19438i14C823B0C33A8A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturegrp.PNG" alt="Capturegrp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTML&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturehtml.PNG" style="width: 120px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19439iA0BE4DCC99DCABCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturehtml.PNG" alt="Capturehtml.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PDF&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturepdf.PNG" style="width: 149px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19440i195FC62E67EE3A17/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturepdf.PNG" alt="Capturepdf.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RTF&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturertf.PNG" style="width: 167px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19441iAFBD7C617EF4D25C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturertf.PNG" alt="Capturertf.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS Graphs seem to behave differently than when I last tested these syntaxes. Oh well...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;title;
 
%***************** SAS/GRAPH **********;
%let a=%sysfunc(unicodec(TRT A 5x10, utf16b),$hex40.)00b92070;
%let b=%sysfunc(unicodec(TRT B 1x10, utf16b),$hex40.)00b900b9;
%put &amp;amp;=a ;%put &amp;amp;=b;
legend value=(font="arial unicode ms/unicode" "&amp;amp;a"x "&amp;amp;b"x) ;
axis   value=(font="arial unicode ms/unicode" "&amp;amp;a"x "&amp;amp;b"x 
              font="arial" /* for GIF for next values on axis*/);
        
goptions ypixels=200 xpixels=320 dev=gif;
title1 h=1 font="arial unicode ms" "TRT A 5x10^{super 10}" ;* no /unicode;
title2 h=1 font="arial unicode ms" "TRT B 1x10^{super 11}" ;* for title!;
proc gplot data=SASHELP.CLASS;
  plot WEIGHT*AGE=SEX/legend=legend1 haxis=axis1;
  note c=black f='arial unicode ms/unicode' m=(20,50)pct h=3 "&amp;amp;a"x;
  note c=black f='arial unicode ms/unicode' m=(20,40)pct h=3 "&amp;amp;b"x;
  run;
quit; 
 
goptions dev=actximg;
title;
proc gplot data=SASHELP.CLASS;
  plot WEIGHT*AGE=SEX/legend=legend1 haxis=axis1;
  run;
quit; 
 
 
%***************** 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=620px height=400px;
proc sgpanel data=SASHELP.CLASS;
  format SEX $sup_sg.;
  panelby SEX / novarname headerattrs=GraphUnicodeText;
  scatter x=WEIGHT y=HEIGHT;
run;
 
 
%***************** ODS REPORT **********;
ods escapechar='^' noproctitle;
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;       
 
 
data TEST;
  X="TRT A 5x10^{super 10}";
run;
 
title "TRT A 5x10^{super 12}";
 
ods rtf file="%sysfunc(pathname(WORK))\test.rtf" ;
ods pdf file="%sysfunc(pathname(WORK))\test.pdf" ;
ods html file="%sysfunc(pathname(WORK))\test.html" ;
ods excel file="%sysfunc(pathname(WORK))\test.xls" ;
proc print data=TEST noobs;
run;
ods _all_ close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 05:23:14 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-03-26T05:23:14Z</dc:date>
    <item>
      <title>For those interested in crypto - ₿ Bitcoin SAS Format – $bitcoin.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/447763#M112548</link>
      <description>&lt;P&gt;&lt;SPAN class="ember-view"&gt;&lt;SPAN&gt;Application of bitcoin format for SAS users. This post also applies to other cryptocurrencies such as Ether and altcoins and integrating them into the SAS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="ember-view"&gt;&lt;SPAN&gt;&amp;nbsp;platform. Check it out!&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ember-view"&gt;&lt;A href="https://www.rawsas.com/2018/03/bitcoin-sas-format/" target="_blank"&gt;https://www.rawsas.com/2018/03/bitcoin-sas-format/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/447763#M112548</guid>
      <dc:creator>Skorobogatiji</dc:creator>
      <dc:date>2018-03-22T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: For those interested in crypto - ₿ Bitcoin SAS Format – $bitcoin.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/448560#M112841</link>
      <description>&lt;P&gt;The syntax to use Unicode characters varies wildly, depending on where in SAS one uses them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/GRAPH titles require a different syntax than SAS/GRAPH legends, which is again different from what ODS Graphs understands,&amp;nbsp;which is also different from what ODS reports need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a summary of my findings. I am just displaying an exponent here, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graph&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturegrp.PNG" style="width: 185px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19438i14C823B0C33A8A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturegrp.PNG" alt="Capturegrp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTML&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturehtml.PNG" style="width: 120px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19439iA0BE4DCC99DCABCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturehtml.PNG" alt="Capturehtml.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PDF&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturepdf.PNG" style="width: 149px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19440i195FC62E67EE3A17/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturepdf.PNG" alt="Capturepdf.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RTF&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturertf.PNG" style="width: 167px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19441iAFBD7C617EF4D25C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturertf.PNG" alt="Capturertf.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS Graphs seem to behave differently than when I last tested these syntaxes. Oh well...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;title;
 
%***************** SAS/GRAPH **********;
%let a=%sysfunc(unicodec(TRT A 5x10, utf16b),$hex40.)00b92070;
%let b=%sysfunc(unicodec(TRT B 1x10, utf16b),$hex40.)00b900b9;
%put &amp;amp;=a ;%put &amp;amp;=b;
legend value=(font="arial unicode ms/unicode" "&amp;amp;a"x "&amp;amp;b"x) ;
axis   value=(font="arial unicode ms/unicode" "&amp;amp;a"x "&amp;amp;b"x 
              font="arial" /* for GIF for next values on axis*/);
        
goptions ypixels=200 xpixels=320 dev=gif;
title1 h=1 font="arial unicode ms" "TRT A 5x10^{super 10}" ;* no /unicode;
title2 h=1 font="arial unicode ms" "TRT B 1x10^{super 11}" ;* for title!;
proc gplot data=SASHELP.CLASS;
  plot WEIGHT*AGE=SEX/legend=legend1 haxis=axis1;
  note c=black f='arial unicode ms/unicode' m=(20,50)pct h=3 "&amp;amp;a"x;
  note c=black f='arial unicode ms/unicode' m=(20,40)pct h=3 "&amp;amp;b"x;
  run;
quit; 
 
goptions dev=actximg;
title;
proc gplot data=SASHELP.CLASS;
  plot WEIGHT*AGE=SEX/legend=legend1 haxis=axis1;
  run;
quit; 
 
 
%***************** 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=620px height=400px;
proc sgpanel data=SASHELP.CLASS;
  format SEX $sup_sg.;
  panelby SEX / novarname headerattrs=GraphUnicodeText;
  scatter x=WEIGHT y=HEIGHT;
run;
 
 
%***************** ODS REPORT **********;
ods escapechar='^' noproctitle;
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;       
 
 
data TEST;
  X="TRT A 5x10^{super 10}";
run;
 
title "TRT A 5x10^{super 12}";
 
ods rtf file="%sysfunc(pathname(WORK))\test.rtf" ;
ods pdf file="%sysfunc(pathname(WORK))\test.pdf" ;
ods html file="%sysfunc(pathname(WORK))\test.html" ;
ods excel file="%sysfunc(pathname(WORK))\test.xls" ;
proc print data=TEST noobs;
run;
ods _all_ close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 05:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/For-those-interested-in-crypto-Bitcoin-SAS-Format-bitcoin/m-p/448560#M112841</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-26T05:23:14Z</dc:date>
    </item>
  </channel>
</rss>

