<?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 on proc export in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561802#M10642</link>
    <description>&lt;P&gt;When using single quotes ' then SAS will not look to find macro references inside. You have to use double quotes for it to happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh, and you will probably need to add another dot in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let&amp;nbsp;export=myFile;
%put&amp;nbsp;\C:\Users\Incremental_Reach_Report_&amp;amp;export.xlsx;
*This will then be translated to \C:\Users\Incremental_Reach_Report_myFilexlsx;
*The dot will be translated as the end of the macro variable, and it will be removed when the replacement is happening.;
*You want;
%put&amp;nbsp;\C:\Users\Incremental_Reach_Report_&amp;amp;export..xlsx;
*This will then be translated to \C:\Users\Incremental_Reach_Report_myFile.xlsx;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 May 2019 21:45:06 GMT</pubDate>
    <dc:creator>heffo</dc:creator>
    <dc:date>2019-05-27T21:45:06Z</dc:date>
    <item>
      <title>Macro on proc export</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561801#M10641</link>
      <description>&lt;P&gt;Hi, need help!!&lt;/P&gt;&lt;P&gt;when assigning macro to proc export, it works in data file i.e&amp;nbsp;Reach_Report_&amp;amp;export&amp;nbsp; but not in outfile. My macro contains value as 2, it works in data =&amp;nbsp;Reach_Report_2 but not in outfile. Any reasons and how to correct it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=Report_2&amp;nbsp; &amp;nbsp;outfile='\C:\Users\Incremental_Reach_Report_&amp;amp;export.xlsx'&lt;/P&gt;&lt;P&gt;dbms = xlsx replace;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 21:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561801#M10641</guid>
      <dc:creator>meckarthik</dc:creator>
      <dc:date>2019-05-27T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on proc export</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561802#M10642</link>
      <description>&lt;P&gt;When using single quotes ' then SAS will not look to find macro references inside. You have to use double quotes for it to happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh, and you will probably need to add another dot in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let&amp;nbsp;export=myFile;
%put&amp;nbsp;\C:\Users\Incremental_Reach_Report_&amp;amp;export.xlsx;
*This will then be translated to \C:\Users\Incremental_Reach_Report_myFilexlsx;
*The dot will be translated as the end of the macro variable, and it will be removed when the replacement is happening.;
*You want;
%put&amp;nbsp;\C:\Users\Incremental_Reach_Report_&amp;amp;export..xlsx;
*This will then be translated to \C:\Users\Incremental_Reach_Report_myFile.xlsx;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2019 21:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561802#M10642</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-05-27T21:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on proc export</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561806#M10644</link>
      <description>&lt;P&gt;thank you !! it helps&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 22:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561806#M10644</guid>
      <dc:creator>meckarthik</dc:creator>
      <dc:date>2019-05-27T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on proc export</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561807#M10645</link>
      <description>&lt;P&gt;thank you, it helps&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 22:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro-on-proc-export/m-p/561807#M10645</guid>
      <dc:creator>meckarthik</dc:creator>
      <dc:date>2019-05-27T22:31:10Z</dc:date>
    </item>
  </channel>
</rss>

