<?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 how to overcome compilation error of the macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164778#M31856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after run this program sas will not work is there any way to overcome ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro printit;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 04:21:16 GMT</pubDate>
    <dc:creator>javvadi</dc:creator>
    <dc:date>2014-02-06T04:21:16Z</dc:date>
    <item>
      <title>how to overcome compilation error of the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164778#M31856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after run this program sas will not work is there any way to overcome ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro printit;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 04:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164778#M31856</guid>
      <dc:creator>javvadi</dc:creator>
      <dc:date>2014-02-06T04:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to overcome compilation error of the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164779#M31857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the macro processor begins compiling a macro definition, it reads and&lt;/P&gt;&lt;P align="left"&gt;compiles tokens until it finds a matching %MEND statement. If you omit a %MEND&lt;/P&gt;&lt;P align="left"&gt;statement or cause it to be unrecognized by omitting a semicolon in the preceding&lt;/P&gt;&lt;P align="left"&gt;statement, the macro processor does not stop compiling tokens. Every line of code you&lt;/P&gt;&lt;P align="left"&gt;submit becomes part of the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This kind of error is known as "BLACK HOLE ERROR" in SAS&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;To recover from this error, submit the followin:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;If the above method dont work, submit the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*’; *"; *); */; %mend; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;Continue submitting this string until the following message apperas in SAS Logs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;ERROR: No Matching %MACRO Statement for this %MEND statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;If still problem not resolved after applying above methods, YOU HAVE TO CLSE THE SAS SESSION...MAKE SURE YOU SAVE ALL YOUR RELATED WORKS...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;-Urvish&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: NewCenturySchlbk-Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier10PitchBT-Regular;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 06:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164779#M31857</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2014-02-06T06:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to overcome compilation error of the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164780#M31858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further to what &lt;A __default_attr="2503" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; said, once you add the &lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend&lt;/SPAN&gt; to the end of your macro function that will be the end of the macro &lt;EM&gt;definition&lt;/EM&gt;, to actually &lt;EM&gt;run&lt;/EM&gt; the macro you will have to invoke it, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* macro printit definition */&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro printit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; proc print;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* run macro printit */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%printit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-overcome-compilation-error-of-the-macro/m-p/164780#M31858</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-02-06T12:44:39Z</dc:date>
    </item>
  </channel>
</rss>

