<?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 macro with multiple quotation marks in pass-through? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/415250#M101815</link>
    <description>&lt;P&gt;Thanks everyone. &amp;nbsp;It actually works. &amp;nbsp;There was something wrong with my logic in my code that made me think it wasn't working.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 16:48:49 GMT</pubDate>
    <dc:creator>schoi</dc:creator>
    <dc:date>2017-11-21T16:48:49Z</dc:date>
    <item>
      <title>How to use macro with multiple quotation marks in pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414978#M101724</link>
      <description>&lt;P&gt;I have a macro with multiple quotation marks. &amp;nbsp;For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let animal = 'cow', 'pig', 'chicken'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use the macro animal in the WHERE clause in a proc sql pass-through query. &amp;nbsp;How do I do that?&lt;/P&gt;&lt;P&gt;I already tried bquote and str but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414978#M101724</guid>
      <dc:creator>schoi</dc:creator>
      <dc:date>2017-11-20T22:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use macro with multiple quotation marks in pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414987#M101731</link>
      <description>&lt;P&gt;You don't need any functions.&amp;nbsp; Anywhere in the program where this would be valid syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'cow', 'pig', 'chicken'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just insert &amp;amp;ANIMAL at that point.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414987#M101731</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-20T22:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use macro with multiple quotation marks in pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414988#M101732</link>
      <description>&lt;P&gt;Did you try it?&amp;nbsp; What problem did you have?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let animal = 'cow', 'pig', 'chicken' ;
proc sql ;
 connect to oracle as mydb ..... ;
select * from connection to mydb
(select * from have
  where animal in (&amp;amp;animal)
);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 23:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/414988#M101732</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-20T23:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use macro with multiple quotation marks in pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/415250#M101815</link>
      <description>&lt;P&gt;Thanks everyone. &amp;nbsp;It actually works. &amp;nbsp;There was something wrong with my logic in my code that made me think it wasn't working.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 16:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-macro-with-multiple-quotation-marks-in-pass-through/m-p/415250#M101815</guid>
      <dc:creator>schoi</dc:creator>
      <dc:date>2017-11-21T16:48:49Z</dc:date>
    </item>
  </channel>
</rss>

