<?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 year could not be recognized? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793148#M254167</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a macro code that shows an error message in the log window.&amp;nbsp; Please let me know how to fix it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA=underlyspecify&amp;amp;year.
      outfile="Underly_Con_&amp;amp;bdate..xlsx"
      dbms=xlsx replace;
      sheet=&amp;amp;year.; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;LI-SPOILER&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;sheet=&amp;amp;year;&lt;BR /&gt;NOTE: Line generated by the macro variable "YEAR".&lt;BR /&gt;1 1819&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ----&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string.&lt;/P&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;/LI-SPOILER&gt;</description>
    <pubDate>Fri, 28 Jan 2022 15:05:54 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2022-01-28T15:05:54Z</dc:date>
    <item>
      <title>Macro year could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793148#M254167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a macro code that shows an error message in the log window.&amp;nbsp; Please let me know how to fix it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA=underlyspecify&amp;amp;year.
      outfile="Underly_Con_&amp;amp;bdate..xlsx"
      dbms=xlsx replace;
      sheet=&amp;amp;year.; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;LI-SPOILER&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;sheet=&amp;amp;year;&lt;BR /&gt;NOTE: Line generated by the macro variable "YEAR".&lt;BR /&gt;1 1819&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ----&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string.&lt;/P&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793148#M254167</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-01-28T15:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro year could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793149#M254168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp; Perhaps enclose the &amp;amp;year in sheet within quotes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sheet= &lt;STRONG&gt;"&amp;amp;year"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;  sheet=&amp;amp;year.; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793149#M254168</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2022-01-28T15:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro year could not be recognized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793150#M254169</link>
      <description>&lt;P&gt;The sheet name should be quoted as follows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sheet="&amp;amp;year."; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-year-could-not-be-recognized/m-p/793150#M254169</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-01-28T15:10:24Z</dc:date>
    </item>
  </channel>
</rss>

