<?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: Macro variable value containing superscript 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502808#M134279</link>
    <description>&lt;P&gt;Please post your full code, and the results of running this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSVLONG &amp;amp;=SYSSCPL;&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.vdest; run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 16:53:10 GMT</pubDate>
    <dc:creator>Vince_SAS</dc:creator>
    <dc:date>2018-10-09T16:53:10Z</dc:date>
    <item>
      <title>Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502736#M134251</link>
      <description>&lt;P&gt;I have a program that attempts to define two macro variables - one being superscript 1 and one being superscript 2.&amp;nbsp; The program then uses a CASE statement to determine if that superscript should be appended to a drug name for a later publication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this to define the global variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* 1 superscript */&lt;BR /&gt;call symput('sup1',kcvt('00b9'x,'utf-16be','utf-16be'));&lt;BR /&gt;/* 2 superscript */&lt;BR /&gt;call symput('sup2',kcvt('00b2'x,'utf-16be','utf-16be'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CASE statements later do work, as I have another variable with a 'YES' or 'NO ' indicating whether the superscripts should be applied.&amp;nbsp; And that works correctly for both superscripts.&amp;nbsp; However, DRUG_NAME || "&amp;amp;sup1" appears to work correctly, giving me the drug name with a superscript 1 at the end.&amp;nbsp; However,&amp;nbsp;DRUG_NAME || “&amp;amp;sup2” does not.&amp;nbsp; I only get the drug name - no superscript.&amp;nbsp; In addition, the program runs much slower and I am experiencing OutOfMemory errors when this is included.&amp;nbsp; I don't know if this is program memory or log memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I defining superscript 2 incorrectly?&lt;/P&gt;&lt;P&gt;____________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First case statement does not work.&amp;nbsp; Second case statement does work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select&lt;BR /&gt;case when E."Brand Name"n is null then PN1.Pub_Name else PN1.Pub_Name || "&amp;amp;sup2" end as Pub_Name,&lt;BR /&gt;case when E."Brand Name"n is null then 'No ' else 'Yes' end as Strength_Exclusion&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 15:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502736#M134251</guid>
      <dc:creator>PrimeDougR</dc:creator>
      <dc:date>2018-10-09T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502784#M134272</link>
      <description>&lt;P&gt;It is best not to use hexadecimal characters in SAS macro variable values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Note: The SAS macro language does not support using hexadecimal values to specify non-printable characters."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 Macro Language: Reference, Fifth Edition: Getting Started with the Macro Facility&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p1ccprwibo8gvqn1q6zinvjlzuut.htm&amp;amp;docsetVersion=9.4" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p1ccprwibo8gvqn1q6zinvjlzuut.htm&amp;amp;docsetVersion=9.4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your goal is unclear, but maybe you can adapt something like this to your application:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';

data work.drug;
length drug $19 sup1 sup2 $10;
retain sup1 sup2;
infile cards;
input drug;
if (_n_) then do;
  sup1 = '^{super 1}';
  sup2 = '^{super 2}';
end;
if (drug eq 'Aspirin')
  then drug = cats(drug, sup1);
  else if (drug eq 'Ibuprofen')
    then drug = cats(drug, sup2);
cards;
Aspirin
Ibuprofen
;
run;

proc print data=work.drug; run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502784#M134272</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-10-09T16:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502805#M134277</link>
      <description>&lt;P&gt;There may be an issue with how our SAS is set up.&amp;nbsp; But it isn't recognizing the superscript part of '^{super 1}'.&amp;nbsp; I did set '^' as the escapechar and ran your code, but the values are coming back simply as numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Obs drug sup1 sup2 &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Aspirin1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Ibuprofen2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502805#M134277</guid>
      <dc:creator>PrimeDougR</dc:creator>
      <dc:date>2018-10-09T16:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502808#M134279</link>
      <description>&lt;P&gt;Please post your full code, and the results of running this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSVLONG &amp;amp;=SYSSCPL;&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.vdest; run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502808#M134279</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-10-09T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502836#M134286</link>
      <description>&lt;P&gt;Running your code, I got this for results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Obs destination style &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;TAGSETS.SASREPORT13(EGSR)&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;HTMLBlue&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:25:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502836#M134286</guid>
      <dc:creator>PrimeDougR</dc:creator>
      <dc:date>2018-10-09T18:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502842#M134287</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Check the log for the results of the %PUT statement.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I suspect that the SASReport ODS destinations do not support things like superscripts.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Are you using SAS Enterprise Guide to run the code?&amp;nbsp; If so, then turn on HTML output or PDF output to see the superscripts.&amp;nbsp; Otherwise, manually issue an ODS statement for these destinations.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502842#M134287</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-10-09T18:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502861#M134291</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Below is a small-scale version of what I am attempting to do.&amp;nbsp; In my results, Super1 and Super2 are not showing the drug name and superscript attached correctly.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Drug Super1 Super2 &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Aspirin&lt;/TD&gt;&lt;TD&gt;Aspirin&lt;BR /&gt;¹&lt;/TD&gt;&lt;TD&gt;Aspirin&lt;BR /&gt;²&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Insulin&lt;/TD&gt;&lt;TD&gt;Insulin&lt;BR /&gt;¹&lt;/TD&gt;&lt;TD&gt;Insulin&lt;BR /&gt;²&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;validvarname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=any;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest (Drug char(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;insert&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;values&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Aspirin'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;values&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Insulin'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.WithSuperscripts &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Drug, Drug||compress(kcvt(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00b9'x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Super1,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Drug||compress(kcvt(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00b2'x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Super2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.WithSuperscripts;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502861#M134291</guid>
      <dc:creator>PrimeDougR</dc:creator>
      <dc:date>2018-10-09T19:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable value containing superscript 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502871#M134296</link>
      <description>&lt;P&gt;OK.&amp;nbsp; I was able to get it to work, although I'm not sure I completely understand.&amp;nbsp; Even though I used COMPRESS for my superscript values, I was still getting a blank space at the beginning.&amp;nbsp; So I tried SUBSTR, looking for the second character only.&amp;nbsp; That worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;validvarname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=any;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest (Drug char(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;insert&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;values&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Aspirin'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;values&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Insulin'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.WithSuperscripts &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Drug, strip(Drug)||substr(compress(kcvt(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00b9'x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)),&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Super1,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;strip(Drug)||substr(compress(kcvt(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00b2'x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'utf-16be'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)),&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Super2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.DougTest);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.WithSuperscripts;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-value-containing-superscript-2/m-p/502871#M134296</guid>
      <dc:creator>PrimeDougR</dc:creator>
      <dc:date>2018-10-09T19:49:17Z</dc:date>
    </item>
  </channel>
</rss>

