<?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 will not generate in code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743656#M232870</link>
    <description>&lt;P&gt;&amp;nbsp;I am trying to do a print a table but the superscript will not work for one of the variables&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;option missing='0' nodate nonumber orientation=landscape ;&lt;BR /&gt;ods escapechar="~";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ALL;&lt;BR /&gt;set ALL;&lt;BR /&gt;length outcome $61.&amp;nbsp;&lt;BR /&gt;if variablenames eq 'stall' then outcome='The Number of Reported Cases (%)';&lt;BR /&gt;if variablenames eq 'caseassign_per' then outcome='The Number of Cases Assigned for an Investigation (%)';&lt;/P&gt;&lt;P&gt;if variablenames eq 'passigned_per' then outcome='Partners assigned (%)';&lt;/P&gt;&lt;P&gt;if variablenames eq 'test_30_per' then outcome='Testing Among OPs (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_active' then outcome='The Number of Cases Active Referral&amp;nbsp; (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_passive' then outcome='The Number of Cases Passive Referral&amp;nbsp; (%)';&lt;BR /&gt;if variablenames eq 'part_HIV_test_per' then outcome='The Number of Partners Tested for HIV (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_Active_REFPart' then outcome= 'The Number of Partners Active Referral (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_passive_REFPart' then outcome='The Number of Partners Passive Referral (%)';&lt;/P&gt;&lt;P&gt;***;&lt;/P&gt;&lt;P&gt;if variablenames eq 'stdall' then count=1;&lt;BR /&gt;if variablenames eq 'caseassign_per' then count=2;&lt;/P&gt;&lt;P&gt;if variablenames eq 'passigned_per' then count=3;&lt;BR /&gt;if variablenames eq 'test_30_per' then count=4;&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_active' then count=5;&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_passive' then count=6;&lt;BR /&gt;if variablenames eq 'part_test_per' then count=7;&lt;BR /&gt;if variablenames eq 'NONMISSING_Active_REFPart' then count=8;&lt;BR /&gt;if variablenames eq 'NONMISSING_passive_REFPart' then count=9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if outcome='The Number of Cases Assigned for an Investigation (%)' then outcome=catx(' ',outcome,'~{super 2}');&lt;BR /&gt;if outcome='Testing Among OPs (%)' then outcome=catx(' ',outcome,'~{super 3}');&lt;BR /&gt;if outcome='The Number of Cases Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}');&lt;BR /&gt;if outcome='The Number of Cases Passive Referral %)' then outcome=catx(' ',outcome,'~{super 4}');&lt;/P&gt;&lt;P&gt;if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}');&lt;BR /&gt;if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}');&lt;BR /&gt;if outcome='The Number of Partners Tested(%)' then outcome=catx(' ',outcome,'~{super 3}');&lt;BR /&gt;if outcome='The Number of Partners Passive Referral (%)' then outcome=catx(' ',outcome&lt;STRONG&gt;,'~{super 4}');&lt;/STRONG&gt;&lt;BR /&gt;if outcome='The Number of Partners Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SORT DATA=ALL2;&lt;BR /&gt;BY descending pop diagnosis COUNT;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;proc print data= ALL2 noobs; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobeng_0-1621966513608.png" style="width: 88px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59736i6AA2D02080C0BD60/image-dimensions/88x68?v=v2" width="88" height="68" role="button" title="bobeng_0-1621966513608.png" alt="bobeng_0-1621966513608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobeng_1-1621966549551.png" style="width: 191px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59737i52C100BE58AA10CA/image-dimensions/191x91?v=v2" width="191" height="91" role="button" title="bobeng_1-1621966549551.png" alt="bobeng_1-1621966549551.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 18:17:57 GMT</pubDate>
    <dc:creator>bobeng</dc:creator>
    <dc:date>2021-05-25T18:17:57Z</dc:date>
    <item>
      <title>Superscript will not generate in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743656#M232870</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to do a print a table but the superscript will not work for one of the variables&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;option missing='0' nodate nonumber orientation=landscape ;&lt;BR /&gt;ods escapechar="~";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ALL;&lt;BR /&gt;set ALL;&lt;BR /&gt;length outcome $61.&amp;nbsp;&lt;BR /&gt;if variablenames eq 'stall' then outcome='The Number of Reported Cases (%)';&lt;BR /&gt;if variablenames eq 'caseassign_per' then outcome='The Number of Cases Assigned for an Investigation (%)';&lt;/P&gt;&lt;P&gt;if variablenames eq 'passigned_per' then outcome='Partners assigned (%)';&lt;/P&gt;&lt;P&gt;if variablenames eq 'test_30_per' then outcome='Testing Among OPs (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_active' then outcome='The Number of Cases Active Referral&amp;nbsp; (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_passive' then outcome='The Number of Cases Passive Referral&amp;nbsp; (%)';&lt;BR /&gt;if variablenames eq 'part_HIV_test_per' then outcome='The Number of Partners Tested for HIV (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_Active_REFPart' then outcome= 'The Number of Partners Active Referral (%)';&lt;BR /&gt;if variablenames eq 'NONMISSING_passive_REFPart' then outcome='The Number of Partners Passive Referral (%)';&lt;/P&gt;&lt;P&gt;***;&lt;/P&gt;&lt;P&gt;if variablenames eq 'stdall' then count=1;&lt;BR /&gt;if variablenames eq 'caseassign_per' then count=2;&lt;/P&gt;&lt;P&gt;if variablenames eq 'passigned_per' then count=3;&lt;BR /&gt;if variablenames eq 'test_30_per' then count=4;&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_active' then count=5;&lt;BR /&gt;if variablenames eq 'NONMISSING_REFERAL_passive' then count=6;&lt;BR /&gt;if variablenames eq 'part_test_per' then count=7;&lt;BR /&gt;if variablenames eq 'NONMISSING_Active_REFPart' then count=8;&lt;BR /&gt;if variablenames eq 'NONMISSING_passive_REFPart' then count=9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if outcome='The Number of Cases Assigned for an Investigation (%)' then outcome=catx(' ',outcome,'~{super 2}');&lt;BR /&gt;if outcome='Testing Among OPs (%)' then outcome=catx(' ',outcome,'~{super 3}');&lt;BR /&gt;if outcome='The Number of Cases Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}');&lt;BR /&gt;if outcome='The Number of Cases Passive Referral %)' then outcome=catx(' ',outcome,'~{super 4}');&lt;/P&gt;&lt;P&gt;if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}');&lt;BR /&gt;if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}');&lt;BR /&gt;if outcome='The Number of Partners Tested(%)' then outcome=catx(' ',outcome,'~{super 3}');&lt;BR /&gt;if outcome='The Number of Partners Passive Referral (%)' then outcome=catx(' ',outcome&lt;STRONG&gt;,'~{super 4}');&lt;/STRONG&gt;&lt;BR /&gt;if outcome='The Number of Partners Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SORT DATA=ALL2;&lt;BR /&gt;BY descending pop diagnosis COUNT;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;proc print data= ALL2 noobs; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobeng_0-1621966513608.png" style="width: 88px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59736i6AA2D02080C0BD60/image-dimensions/88x68?v=v2" width="88" height="68" role="button" title="bobeng_0-1621966513608.png" alt="bobeng_0-1621966513608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobeng_1-1621966549551.png" style="width: 191px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59737i52C100BE58AA10CA/image-dimensions/191x91?v=v2" width="191" height="91" role="button" title="bobeng_1-1621966549551.png" alt="bobeng_1-1621966549551.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743656#M232870</guid>
      <dc:creator>bobeng</dc:creator>
      <dc:date>2021-05-25T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript will not generate in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743668#M232877</link>
      <description>&lt;P&gt;Well, that sure looks like it should work.&amp;nbsp; Maybe it's a SAS bug.&amp;nbsp; I'm not sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try changing this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if outcome='The Number of Partners Passive Referral (%)' then outcome=catx(' ',outcome,'~{super 4}');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to the below just to see if we can find a work-around&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if outcome='The Number of Partners Passive Referral (%)' then outcome=cat(outcome,' ','~{super 4}',' ');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just changing from CATX to CAT and padding a space on the end.&amp;nbsp; It's basically just a shot in the dark.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743668#M232877</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-05-25T18:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript will not generate in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743675#M232881</link>
      <description>yes, it worked! thank you!</description>
      <pubDate>Tue, 25 May 2021 19:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743675#M232881</guid>
      <dc:creator>bobeng</dc:creator>
      <dc:date>2021-05-25T19:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript will not generate in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743684#M232886</link>
      <description>&lt;P&gt;You are not defining your variable long enough for the strings you trying to store in it.&lt;/P&gt;
&lt;PRE&gt;332   data test;
333     length outcome $100;
334     outcome='The Number of Cases Assigned for an Investigation (%)' ;
335     outcome=catx(' ',outcome,'~{super 2}');
336     len=length(outcome);
337     put (_all_) (=/);
338
339
340   run;


outcome=The Number of Cases Assigned for an Investigation (%) ~{super 2}
len=64
&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 May 2021 19:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Superscript-will-not-generate-in-code/m-p/743684#M232886</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-25T19:43:53Z</dc:date>
    </item>
  </channel>
</rss>

