<?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: Superscript in picture format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791971#M253755</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76701"&gt;@bnawrocki&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A third approach is to type the superscript 1 as ¹ directly into the code, which can be done with Alt+0185 at least under Windows. (Unfortunately I have neither a Linux nor a SAS Viya test environment available.) Interestingly, this is the &lt;EM&gt;only&lt;/EM&gt; approach (among the three suggestions) that works with my Windows SAS 9.4M5 using HTML output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="superscript1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67686iAF88126609AEE6D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="superscript1.png" alt="superscript1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why the resulting HTML code differs between title and table and why it contains zeros or degree signs ("&lt;FONT face="courier new,courier"&gt;&amp;amp;#176;&lt;/FONT&gt;") in the table cells when clearly a "1" or "¹" (&lt;FONT face="courier new,courier"&gt;='B9'x&lt;/FONT&gt;) was requested. (Also note the ugly vertical alignment when using the first approach.)&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 20:12:07 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-01-24T20:12:07Z</dc:date>
    <item>
      <title>Superscript in picture format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791886#M253714</link>
      <description>&lt;P&gt;This code used to work in Windows SAS 9.4 - that is, I saw a superscript 1 in both title and data.&lt;/P&gt;&lt;P&gt;But running this in Linux SAS Viya, it doesn't.&lt;/P&gt;&lt;P&gt;The TITLE statement works OK - I see the Superscript 1.&lt;/P&gt;&lt;P&gt;But in the "Age" column, if age &amp;lt; 14, I don't see Superscript 1 - I see a Superscript with a generic-looking degree (zero?) sign.&lt;/P&gt;&lt;P&gt;How can I conditionally add Superscript 1 to end of Age?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;I also tried&amp;nbsp;{Unicode '00B9'x} -- but same results.&lt;/P&gt;&lt;PRE&gt;proc format;
	picture myPic
		low -&amp;lt; 14 = "000,009.9(*ESC*){super 1}" 
		other = '000,009.9'; 
run;

title "Title containing a superscript(*ESC*){super 1}";
proc print data=sashelp.class;
  format age myPic.;
run;
&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Here is the output from Results window. Note Age in Obs 2 has wrong superscript!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Title containing a superscript1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Obs Name Sex Age Height Weight&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alfred&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;14.0&lt;/TD&gt;&lt;TD&gt;69.0&lt;/TD&gt;&lt;TD&gt;112.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;13.00&lt;/TD&gt;&lt;TD&gt;56.5&lt;/TD&gt;&lt;TD&gt;84.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 16:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791886#M253714</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2022-01-24T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in picture format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791971#M253755</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76701"&gt;@bnawrocki&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A third approach is to type the superscript 1 as ¹ directly into the code, which can be done with Alt+0185 at least under Windows. (Unfortunately I have neither a Linux nor a SAS Viya test environment available.) Interestingly, this is the &lt;EM&gt;only&lt;/EM&gt; approach (among the three suggestions) that works with my Windows SAS 9.4M5 using HTML output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="superscript1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67686iAF88126609AEE6D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="superscript1.png" alt="superscript1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why the resulting HTML code differs between title and table and why it contains zeros or degree signs ("&lt;FONT face="courier new,courier"&gt;&amp;amp;#176;&lt;/FONT&gt;") in the table cells when clearly a "1" or "¹" (&lt;FONT face="courier new,courier"&gt;='B9'x&lt;/FONT&gt;) was requested. (Also note the ugly vertical alignment when using the first approach.)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 20:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791971#M253755</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-01-24T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in picture format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791981#M253760</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp; Thanks for checking into this!&lt;/P&gt;&lt;P&gt;Yes, that's what I had to do - I had originally typed Alt-0185 into both strings to get the superscript 1 to display in my Windows SAS reports. But when I copied that SAS code from Windows to Linux and opened the SAS code in SAS Studio there, the 1's had been replaced by a weird "question-mark-in-black-diamond" character. To fix that, in SAS Studio, I typed Alt-0185 over that weird character, and the SAS code now works in Linux SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll just have to remember to not copy SAS code between Windows and Linux with these special characters.&lt;/P&gt;&lt;P&gt;I was hoping either the {SUPER} or {UNICODE} trick would work on both Windows and Linux, but no such luck, at least in this case.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 20:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-in-picture-format/m-p/791981#M253760</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2022-01-24T20:39:29Z</dc:date>
    </item>
  </channel>
</rss>

