<?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 Superscript in Excel via Proc Report and AMO? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/262068#M15562</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to get data from a SAS stored process to Excel via AMO (Add-in for Microsoft Office), thereby formatting values using superscripts.&amp;nbsp;Using the following code I can get the superscript numbers&amp;nbsp;to html (using ods html), but in Excel the numbers are not superscripted. Any idea how I can get the numbers nicely superscripted into Excel via AMO?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Jonas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	set sashelp.cars;
	TypeCyl=cat(strip(Type), '(*ESC*){super ', Cylinders, '}');
run;


proc report data=test;
	col TypeCyl;
	define typeCyl /group;	
run;

proc report data=test;
	col TypeCyl;
	define typeCyl /group across;	
run;
&lt;/CODE&gt;&lt;/PRE&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/12433i934B3CB9B109EE3C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Html Output.png" title="Html Output.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12434i2B524617813B570C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Excel Output.png" title="Excel Output.png" /&gt;</description>
    <pubDate>Thu, 07 Apr 2016 13:30:00 GMT</pubDate>
    <dc:creator>jb3</dc:creator>
    <dc:date>2016-04-07T13:30:00Z</dc:date>
    <item>
      <title>Superscript in Excel via Proc Report and AMO?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/262068#M15562</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to get data from a SAS stored process to Excel via AMO (Add-in for Microsoft Office), thereby formatting values using superscripts.&amp;nbsp;Using the following code I can get the superscript numbers&amp;nbsp;to html (using ods html), but in Excel the numbers are not superscripted. Any idea how I can get the numbers nicely superscripted into Excel via AMO?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Jonas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	set sashelp.cars;
	TypeCyl=cat(strip(Type), '(*ESC*){super ', Cylinders, '}');
run;


proc report data=test;
	col TypeCyl;
	define typeCyl /group;	
run;

proc report data=test;
	col TypeCyl;
	define typeCyl /group across;	
run;
&lt;/CODE&gt;&lt;/PRE&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/12433i934B3CB9B109EE3C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Html Output.png" title="Html Output.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12434i2B524617813B570C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Excel Output.png" title="Excel Output.png" /&gt;</description>
      <pubDate>Thu, 07 Apr 2016 13:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/262068#M15562</guid>
      <dc:creator>jb3</dc:creator>
      <dc:date>2016-04-07T13:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in Excel via Proc Report and AMO?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/262274#M15577</link>
      <description>&lt;P&gt;Please mark this as a solution if it works for you. I am trying to win some conference Swag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if this can work for AMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My method is for ODS. but the style and PROC TEMPLATE may work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My paper here has a cheat method&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/2182-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/2182-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the text from the paper.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template
define  style styles.mystyle;
parent = styles.default;
style super_up from data / fontsize= 8pt verticalalign=top;
end;
quit;
ods tagsets.excelxp file="&amp;amp;folder output from excelxp, font formatting with proc templatesuperup.xls"
style=mystyle ;
proc print data=sashelp.class;
var name sex; &lt;BR /&gt;var age / style( data )=super_up;
run;
ods
tagsets.excelxp 
close
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This will superscript the variable age.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 03:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/262274#M15577</guid>
      <dc:creator>ptimusk</dc:creator>
      <dc:date>2016-04-08T03:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in Excel via Proc Report and AMO?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/263424#M15616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would&amp;nbsp;work if I wanted a whole variable superscripted. Since I need only a superscripted number at the&amp;nbsp;end of a text this does not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime I helped myself out using the unicode numbers for superscripted numbers, as stated &lt;A href="https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts" target="_blank"&gt;here&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value superZahl
		1='~{unicode 00b9}'
		2='~{unicode 00b2}'
		3='~{unicode 00b3}'
		4='~{unicode 2074}'
		5='~{unicode 2075}'
		6='~{unicode 2076}'
		7='~{unicode 2077}'
		8='~{unicode 2078}'
		9='~{unicode 2079}'
		10='~{unicode 00b9}~{unicode 2070}'
		11='~{unicode 00b9}~{unicode 00b9}'
		12='~{unicode 00b9}~{unicode 00b2}'
		13='~{unicode 00b9}~{unicode 00b3}'
		14='~{unicode 00b9}~{unicode 2074}'
		15='~{unicode 00b9}~{unicode 2075}'
		16='~{unicode 00b9}~{unicode 2076}'
		17='~{unicode 00b9}~{unicode 2077}'
		18='~{unicode 00b9}~{unicode 2078}'
		19='~{unicode 00b9}~{unicode 2079}'
		20='~{unicode 00b2}~{unicode 2070}'
	;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 08:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Superscript-in-Excel-via-Proc-Report-and-AMO/m-p/263424#M15616</guid>
      <dc:creator>jb3</dc:creator>
      <dc:date>2016-04-13T08:01:36Z</dc:date>
    </item>
  </channel>
</rss>

