<?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: Applying superscript to a variable instead of text in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789376#M25544</link>
    <description>&lt;P&gt;Pretty sure you need to add the escape character to the variable value as well and/or add some style elements to get it properly displayed. &lt;BR /&gt;&lt;BR /&gt;It also likely matters what your final output destination is, RTF, HTML PDF, WORD, PPTX?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 23:51:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-01-10T23:51:39Z</dc:date>
    <item>
      <title>Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789371#M25543</link>
      <description>&lt;P&gt;I am working in Proc Report with escape character="^". I am trying to apply superscript formatting to a variable and not to specific harcoded text.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have 2 columns of data: Product and ProductCit&lt;/P&gt;&lt;P&gt;I would like to have 1 column where Product is the base and ProductCit is the superscript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried doing it in a compute block but can't find syntax that will take a variable name:&lt;/P&gt;&lt;P&gt;compute Product / character length=250 ;&lt;/P&gt;&lt;P&gt;Product=cat(Product,ProductCit) ;&lt;BR /&gt;endcomp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried adding it as a format to ProductCit in the define statement:&lt;/P&gt;&lt;P&gt;define ProductCit / display style(column)= [] ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only seem to find examples where the superscript text is hard coded. Unfortunately, mine will be dynamic and I need to apply the format to the variable. Does anyone know how or have any ideas? I've been reading papers for days!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 22:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789371#M25543</guid>
      <dc:creator>jmck</dc:creator>
      <dc:date>2022-01-10T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789376#M25544</link>
      <description>&lt;P&gt;Pretty sure you need to add the escape character to the variable value as well and/or add some style elements to get it properly displayed. &lt;BR /&gt;&lt;BR /&gt;It also likely matters what your final output destination is, RTF, HTML PDF, WORD, PPTX?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 23:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789376#M25544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-10T23:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789377#M25545</link>
      <description>FYI - I've moved this post to the reporting forum instead of general programming.</description>
      <pubDate>Mon, 10 Jan 2022 23:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789377#M25545</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-10T23:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789378#M25546</link>
      <description>Outputting to Excel. .xlsx&lt;BR /&gt;Worst case, I had an idea to use macro variables to output the text, but that'll be my last resort before throwing in the towel.</description>
      <pubDate>Mon, 10 Jan 2022 23:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789378#M25546</guid>
      <dc:creator>jmck</dc:creator>
      <dc:date>2022-01-10T23:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789382#M25547</link>
      <description>Can you post some fake data with current code to play around with? &lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2022 00:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789382#M25547</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-11T00:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789442#M25548</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.class;
super=cat(name,'(*ESC*){super ',age,'}');
run;


ods excel file='c:\temp\temp.xlsx';
proc report data=have nowd;
column name age super;
define name/display;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1641901453376.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67285i3CA492D8796B5BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1641901453376.png" alt="Ksharp_0-1641901453376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789442#M25548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-11T11:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789466#M25550</link>
      <description>Thanks so much! I'll try it as soon as I get on today.</description>
      <pubDate>Tue, 11 Jan 2022 13:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789466#M25550</guid>
      <dc:creator>jmck</dc:creator>
      <dc:date>2022-01-11T13:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789483#M25553</link>
      <description>A thousand THANKS!</description>
      <pubDate>Tue, 11 Jan 2022 15:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/789483#M25553</guid>
      <dc:creator>jmck</dc:creator>
      <dc:date>2022-01-11T15:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Applying superscript to a variable instead of text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/925694#M26571</link>
      <description>&lt;P&gt;Wonderful &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;! Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 04:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Applying-superscript-to-a-variable-instead-of-text/m-p/925694#M26571</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2024-04-25T04:41:16Z</dc:date>
    </item>
  </channel>
</rss>

