<?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: SGPLOT: INSET with superscript in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767810#M243462</link>
    <description>&lt;P&gt;Well that worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(*ESC*){unicode chi}(*ESC*){sup '2'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that 2 is quoted, but I used single quotations because this become a double-quotation mark text-string for the INSET statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-keyword"&gt;INSET&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;text-string&lt;/EM&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;SPAN class="xis-symbolHEllipsis"&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"&lt;EM class="xisDoc-userSuppliedValue"&gt;text-string-n&lt;/EM&gt;"&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p0hz27ehuzdd6pn0zaic6x52pkav.htm#n153gj7vztek0an1qkz176niodvq" target="_blank"&gt;/&lt;EM class="xisDoc-userSuppliedValue"&gt;options&lt;/EM&gt;&lt;/A&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note, however, so did&amp;nbsp;`{unicode chi}`{super '2'}, where my ODS ESCAPECHAR is "`".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So my issue was that I did not quote the argument (?):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS documentation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS ESCAPECHAR Statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the ODS ESCAPECHAR Functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the syntax for the ODS ESCAPECHAR functions:&lt;/P&gt;
&lt;P&gt;escape-character{function-name &amp;lt;&amp;lt;arg-1 &amp;lt;arg-2&amp;lt;arg-n&amp;gt;&amp;gt;&amp;gt;&amp;gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUPER Function&lt;BR /&gt;^{SUPER &amp;lt;superscript-value&amp;gt;}&lt;BR /&gt;superscript-value&lt;BR /&gt;can be a numeric, alphanumeric, or a character value. This value is written above and immediately to one side of another character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Always ecstatic and humbled to hear from you data _null_!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 00:22:07 GMT</pubDate>
    <dc:creator>Kevin_Viel</dc:creator>
    <dc:date>2021-09-15T00:22:07Z</dc:date>
    <item>
      <title>SGPLOT: INSET with superscript</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767803#M243458</link>
      <description>&lt;P&gt;Can one use the inline formatting to superscript within the text of the INSET statement to the SGPLOT procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;268092  ods graphics on / width = 8in height = 5in noborder ;
268093  proc sgplot data = output1.Demo_08 sganno = __sganno dattrmap = dattrmap pad = ( bottom = 20pct left = 10pct ) noborder noautolegend ;
268094  step x = time y = survival / group = group name = "step" attrid = AML_Risk ;
268095  scatter x = time y = censored / group = group markerattrs = ( size = 8pt symbol = plus ) name = "scatter" attrid = AML_Risk ;
268096  inset "AML-High Risk [Days] (95% CI) =                   183.00 (113.00, 390.00)"
268097        "AML-Low Risk [Days] (95% CI) =                    2204.00 (641.00, NE)"
268098        "`{unicode chi} `{super 2} = 13.45, p-value = 0.0002"
268099        "+ Censored"
268100  / noborder position = topright textattrs = ( size = 7pt family = "Courier New" )
268101  ;
268102  keylegend "step" / location = inside position = bottom noborder ;
268103  xaxis label = "Overall survival (Days)" labelattrs = ( size = 8pt weight = bold family = "Arial" ) valueattrs = ( size = 8pt weight =
268104  normal family = "Arial" ) values = ( 0 to 2500 by 500 ) offsetmin = 0.05 offsetmax = 0 ;
268105  yaxis label = "Survival Probability" labelattrs = ( size = 8pt weight = bold family = "Arial" ) valueattrs = ( size = 8pt weight =
268106  normal family = "Arial" ) offsetmin = 0.1 offsetmax = 0 values = ( 0 to 1 by 0.2 ) ;
268107  format survival percent10. ;
268108  run ;

WARNING 1-322: Assuming the symbol SUP was misspelled as super.
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, EVAL, HALIGN, TEXTATTRS, {.
ERROR 76-322: Syntax error, statement will be ignored.
WARNING: Object will not be saved.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if I omit the ODS Escapechar from the superscript: "`{unicode chi} {super 2}", then SAS produces the RTF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;268122  ods graphics on / width = 8in height = 5in noborder ;
268123  proc sgplot data = output1.Demo_08 sganno = __sganno dattrmap = dattrmap pad = ( bottom = 20pct left = 10pct ) noborder noautolegend ;
268124  step x = time y = survival / group = group name = "step" attrid = AML_Risk ;
268125  scatter x = time y = censored / group = group markerattrs = ( size = 8pt symbol = plus ) name = "scatter" attrid = AML_Risk ;
268126  inset "AML-High Risk [Days] (95% CI) =                   183.00 (113.00, 390.00)"
268127        "AML-Low Risk [Days] (95% CI) =                    2204.00 (641.00, NE)"
268128        "`{unicode chi}{super 2} = 13.45, p-value = 0.0002"
268129        "+ Censored"
268130  / noborder position = topright textattrs = ( size = 7pt family = "Courier New" )
268131  ;
268132  keylegend "step" / location = inside position = bottom noborder ;
268133  xaxis label = "Overall survival (Days)" labelattrs = ( size = 8pt weight = bold family = "Arial" ) valueattrs = ( size = 8pt weight =
268134  normal family = "Arial" ) values = ( 0 to 2500 by 500 ) offsetmin = 0.05 offsetmax = 0 ;
268135  yaxis label = "Survival Probability" labelattrs = ( size = 8pt weight = bold family = "Arial" ) valueattrs = ( size = 8pt weight =
268136  normal family = "Arial" ) offsetmin = 0.1 offsetmax = 0 values = ( 0 to 1 by 0.2 ) ;
268137  format survival percent10. ;
268138  run ;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.76 seconds
      cpu time            0.43 seconds

NOTE: There were 112 observations read from the data set OUTPUT1.DEMO_08.
NOTE: There were 2 observations read from the data set WORK.DATTRMAP.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 22:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767803#M243458</guid>
      <dc:creator>Kevin_Viel</dc:creator>
      <dc:date>2021-09-14T22:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: INSET with superscript</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767804#M243459</link>
      <description>&lt;P&gt;You must use the escape sequence (*ESC*)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 22:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767804#M243459</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-09-14T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: INSET with superscript</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767810#M243462</link>
      <description>&lt;P&gt;Well that worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(*ESC*){unicode chi}(*ESC*){sup '2'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that 2 is quoted, but I used single quotations because this become a double-quotation mark text-string for the INSET statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-keyword"&gt;INSET&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;text-string&lt;/EM&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;SPAN class="xis-symbolHEllipsis"&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"&lt;EM class="xisDoc-userSuppliedValue"&gt;text-string-n&lt;/EM&gt;"&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p0hz27ehuzdd6pn0zaic6x52pkav.htm#n153gj7vztek0an1qkz176niodvq" target="_blank"&gt;/&lt;EM class="xisDoc-userSuppliedValue"&gt;options&lt;/EM&gt;&lt;/A&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note, however, so did&amp;nbsp;`{unicode chi}`{super '2'}, where my ODS ESCAPECHAR is "`".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So my issue was that I did not quote the argument (?):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS documentation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS ESCAPECHAR Statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the ODS ESCAPECHAR Functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the syntax for the ODS ESCAPECHAR functions:&lt;/P&gt;
&lt;P&gt;escape-character{function-name &amp;lt;&amp;lt;arg-1 &amp;lt;arg-2&amp;lt;arg-n&amp;gt;&amp;gt;&amp;gt;&amp;gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUPER Function&lt;BR /&gt;^{SUPER &amp;lt;superscript-value&amp;gt;}&lt;BR /&gt;superscript-value&lt;BR /&gt;can be a numeric, alphanumeric, or a character value. This value is written above and immediately to one side of another character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Always ecstatic and humbled to hear from you data _null_!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 00:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-INSET-with-superscript/m-p/767810#M243462</guid>
      <dc:creator>Kevin_Viel</dc:creator>
      <dc:date>2021-09-15T00:22:07Z</dc:date>
    </item>
  </channel>
</rss>

