<?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 remove double quote in a macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321539#M71032</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let name = "sam'path";
%let name_unquoted = %qsysfunc(dequote(&amp;amp;name));

%put &amp;amp;name_unquoted;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Dec 2016 04:47:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-12-29T04:47:56Z</dc:date>
    <item>
      <title>How to remove double quote in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321455#M70992</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following issue in Macro code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let name = "sam'path";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here I need to remove double quote and need to store the value &lt;STRONG&gt;sam'path&lt;/STRONG&gt; in a new macro variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried many options and it is not wokring.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please suggest a solution for this .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sampath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 18:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321455#M70992</guid>
      <dc:creator>bmsampath</dc:creator>
      <dc:date>2016-12-28T18:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove double quote in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321456#M70993</link>
      <description>Use %unquote(&amp;amp;name);</description>
      <pubDate>Wed, 28 Dec 2016 18:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321456#M70993</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2016-12-28T18:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove double quote in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321457#M70994</link>
      <description>If previous tip did not work, try this&lt;BR /&gt;%let name = "sam'path";&lt;BR /&gt;%let name_unquoted = %qsysfunc(compress(&amp;amp;name,%str(%")));&lt;BR /&gt;%put name_unquoted =%superq(name_unquoted);&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Dec 2016 18:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321457#M70994</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2016-12-28T18:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove double quote in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321459#M70996</link>
      <description>&lt;P&gt;Big Thanks for the solution.!!! Your 2nd solution fixed the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 18:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321459#M70996</guid>
      <dc:creator>bmsampath</dc:creator>
      <dc:date>2016-12-28T18:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove double quote in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321539#M71032</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let name = "sam'path";
%let name_unquoted = %qsysfunc(dequote(&amp;amp;name));

%put &amp;amp;name_unquoted;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2016 04:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-double-quote-in-a-macro-variable/m-p/321539#M71032</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-29T04:47:56Z</dc:date>
    </item>
  </channel>
</rss>

