<?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 reference could not be recognized? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375373#M276461</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the follow macro program. I found the ‘&amp;amp;&amp;amp;state.may.xlsx’ could not be translated to ‘MDmay.xlsx’ during procedure. I have tried ‘&amp;amp;state.may.xlsx’ too, it still didn’t work. Please help, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let State=MD;&lt;/P&gt;
&lt;P&gt;%let folder='\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;export&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option symbolgen mprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include"\\abc.org\HHE\SAS\report\SASfiles\ExportMacro.sas" / lrecl=&lt;STRONG&gt;32767&lt;/STRONG&gt; source2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;export&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 21&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable X21 resolves to Settings&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable FOLDER resolves to&lt;/P&gt;
&lt;P&gt;'\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx'&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): PROC EXPORT DATA= Settings&lt;/P&gt;
&lt;P&gt;outfile='\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx' dbms=xlsx&lt;/P&gt;
&lt;P&gt;replace;&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): WXLX;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 21&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable X21 resolves to tblSettings&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): sheet= Settings;&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): run;&lt;/P&gt;
&lt;P&gt;NOTE: The export data set has 384 observations and 2 variables.&lt;/P&gt;
&lt;P&gt;NOTE: "\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx" file was&lt;/P&gt;
&lt;P&gt;successfully created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 15:42:36 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2017-07-12T15:42:36Z</dc:date>
    <item>
      <title>Macro reference could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375373#M276461</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the follow macro program. I found the ‘&amp;amp;&amp;amp;state.may.xlsx’ could not be translated to ‘MDmay.xlsx’ during procedure. I have tried ‘&amp;amp;state.may.xlsx’ too, it still didn’t work. Please help, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let State=MD;&lt;/P&gt;
&lt;P&gt;%let folder='\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;export&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option symbolgen mprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include"\\abc.org\HHE\SAS\report\SASfiles\ExportMacro.sas" / lrecl=&lt;STRONG&gt;32767&lt;/STRONG&gt; source2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;export&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 21&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable X21 resolves to Settings&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable FOLDER resolves to&lt;/P&gt;
&lt;P&gt;'\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx'&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): PROC EXPORT DATA= Settings&lt;/P&gt;
&lt;P&gt;outfile='\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx' dbms=xlsx&lt;/P&gt;
&lt;P&gt;replace;&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): WXLX;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 21&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable X21 resolves to tblSettings&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): sheet= Settings;&lt;/P&gt;
&lt;P&gt;MPRINT(EXPORT): run;&lt;/P&gt;
&lt;P&gt;NOTE: The export data set has 384 observations and 2 variables.&lt;/P&gt;
&lt;P&gt;NOTE: "\\abc.org\HHE\SAS\report\SASfiles\&amp;amp;&amp;amp;state.may.xlsx" file was&lt;/P&gt;
&lt;P&gt;successfully created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375373#M276461</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-12T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro reference could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375376#M276462</link>
      <description>&lt;P&gt;You need double quotes for macro variables to resolve.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375376#M276462</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-12T15:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro reference could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375386#M276463</link>
      <description>&lt;P&gt;Great, it works!&amp;nbsp; Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-reference-could-not-be-recognized/m-p/375386#M276463</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-12T15:41:38Z</dc:date>
    </item>
  </channel>
</rss>

