<?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: .sas program having Macros not recognizing in EG and not running in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127685#M10532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you post your macros&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 20:17:34 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-10-29T20:17:34Z</dc:date>
    <item>
      <title>.sas program having Macros not recognizing in EG and not running</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127684#M10531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running one program having 3 inbuilt macros.&lt;/P&gt;&lt;P&gt;I am trying to execute in EG it is running continuously. But no error.&lt;/P&gt;&lt;P&gt;Please help in this regard. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 20:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127684#M10531</guid>
      <dc:creator>SYN</dc:creator>
      <dc:date>2013-10-29T20:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: .sas program having Macros not recognizing in EG and not running</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127685#M10532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you post your macros&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 20:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127685#M10532</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-29T20:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: .sas program having Macros not recognizing in EG and not running</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127686#M10533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is a nearly impossible question to answer. Someone needs to look at the code and the log to see whether there is anything obvious that is causing the issue. It could be as simple as a missing %MEND or a failure to invoke a macro program definition after you compile it. On the other hand, it could be some other issue or generated code that fails. How do you know that the .SAS program is running continuously? When a macro program is compiled, you do NOT see any compile messages in the SAS log, unless you turn on the MCOMPILENOTE option. And, even then, if you successfully compile a SAS Macro program definition, you still need to invoke that definition. So, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options mcompilenote=all;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;%macro hw;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;%put Hello World!;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;%mend hw;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;when you submit the above program, the only result in the LOG will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;NOTE: The macro HW completed compilation without errors.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 instructions 64 bytes.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If you have MCOMPILENOTE turned on, then you will see the note; otherwise, you won't see anything in the SAS Log. But even if the macro compiles successfully, you still won't get any results from the generated code until you INVOKE the macro program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #000000;"&gt;%hw&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;in which case, after you submit, you should see the following in your LOG:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp; %hw&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--- %hw is the way to invoke the macro program previously defined&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;Hello World!&amp;nbsp; &amp;lt;--- this line in the log was written by the %PUT statement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Depending on whether your macro program definition has keyword parameters or positional parameters, you might have an issue with incorrectly specified parameters. You could have quoting issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The best resource for help with SAS programs and macro definitions, is SAS Tech Support. They can look at ALL your code, collect your operating system and EG information and provide you with hints for debugging your problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; To open a track with Tech Support, send mail to &lt;A href="mailto:support@sas.com"&gt;support@sas.com&lt;/A&gt; or, fill out the form at this link:&lt;A href="http://support.sas.com/ctx/supportform/createForm"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; or you can call them at &lt;SPAN class="baec5a81-e4d6-4674-97f3-e9220f0136c1" style="white-space: nowrap;"&gt;919-677-8008 &lt;/SPAN&gt; to open a track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 20:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127686#M10533</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-10-29T20:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: .sas program having Macros not recognizing in EG and not running</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127687#M10534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;mcompilenote&amp;nbsp; &lt;/STRONG&gt;is a very useful opiton.&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 08:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-program-having-Macros-not-recognizing-in-EG-and-not-running/m-p/127687#M10534</guid>
      <dc:creator>HongqiuGu</dc:creator>
      <dc:date>2013-10-30T08:22:20Z</dc:date>
    </item>
  </channel>
</rss>

