<?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 macro quotation mark export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-quotation-mark-export/m-p/710936#M218932</link>
    <description>&lt;P&gt;I would like to write a macro to export a dozen of SAS data files to .csv (with different names).&amp;nbsp; I want the file exported in the assigned folder to be data1.csv, but using the following code, I ended up with a file called '&amp;amp;outfile' NOT&amp;nbsp; the file name data1 which is what I wanted. Can anyone help to resolve this? Thank you.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;%let outfile=data1&lt;/P&gt;
&lt;P&gt;proc export data=&amp;amp;outfile&lt;/P&gt;
&lt;P&gt;outfile='C:\Users\shanx\Desktop\temp files\&amp;amp;oufile.csv' replace;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 22:19:05 GMT</pubDate>
    <dc:creator>Xiaoyi</dc:creator>
    <dc:date>2021-01-12T22:19:05Z</dc:date>
    <item>
      <title>macro quotation mark export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quotation-mark-export/m-p/710936#M218932</link>
      <description>&lt;P&gt;I would like to write a macro to export a dozen of SAS data files to .csv (with different names).&amp;nbsp; I want the file exported in the assigned folder to be data1.csv, but using the following code, I ended up with a file called '&amp;amp;outfile' NOT&amp;nbsp; the file name data1 which is what I wanted. Can anyone help to resolve this? Thank you.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;%let outfile=data1&lt;/P&gt;
&lt;P&gt;proc export data=&amp;amp;outfile&lt;/P&gt;
&lt;P&gt;outfile='C:\Users\shanx\Desktop\temp files\&amp;amp;oufile.csv' replace;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 22:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quotation-mark-export/m-p/710936#M218932</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2021-01-12T22:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: macro quotation mark export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quotation-mark-export/m-p/710937#M218933</link>
      <description>You need to use double quotes when using macro variables, not single quotes. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jan 2021 22:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quotation-mark-export/m-p/710937#M218933</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-12T22:20:51Z</dc:date>
    </item>
  </channel>
</rss>

