<?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: How to use &amp; as a Character and not a Macro Variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49895#M5414</link>
    <description>I tried your code and had no problem. Could you attach the log showing your problem?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
    <pubDate>Thu, 25 Sep 2008 14:59:50 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-09-25T14:59:50Z</dc:date>
    <item>
      <title>How to use &amp; as a Character and not a Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49894#M5413</link>
      <description>Im having a problem with the ampersand quoted after then in the statement below because i've used double quotes SAS thinks that the ampersand is the start of a macro, now the usual way to get round it would be to use single quotes but i can't do this because Italy has an apostrophe and SAS think its end of quote. is there a way of getting round this?&lt;BR /&gt;
&lt;BR /&gt;
Case &lt;BR /&gt;
When TotalTours.Brand = "J" and TotalTours.Description = 'Innsbruck &amp;amp; Lake Garda' then "Innsbruck &amp;amp; Italy's Lake Garda" end</description>
      <pubDate>Thu, 25 Sep 2008 14:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49894#M5413</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-25T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &amp; as a Character and not a Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49895#M5414</link>
      <description>I tried your code and had no problem. Could you attach the log showing your problem?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 25 Sep 2008 14:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49895#M5414</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-25T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &amp; as a Character and not a Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49896#M5415</link>
      <description>the base SAS language includes a function to "hide" the ampersand from normal macro variable handling.&lt;BR /&gt;
However, since your code is not executing within a macro, the solution is even simpler: Just use single quotes (and repeat any embedded single quote)&lt;BR /&gt;
Try [pre]    then 'Innsbruck &amp;amp; Italy''s Lake Garda'  [/pre]&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Thu, 25 Sep 2008 16:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49896#M5415</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-25T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &amp; as a Character and not a Macro Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49897#M5416</link>
      <description>Single quotes is sure the easiest solution here.&lt;BR /&gt;
I think what Peter_c is talking about is %nrstr(....).&lt;BR /&gt;
This means NoResolveString: The macro processor won't resolve the string - especially characters like '&amp;amp;' and '%' with meaning in SAS macro language - but single quotes have the same effect. &lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Fri, 26 Sep 2008 15:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-as-a-Character-and-not-a-Macro-Variable/m-p/49897#M5416</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-09-26T15:48:58Z</dc:date>
    </item>
  </channel>
</rss>

