<?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: EPG: embedded sas code runs perfectly but doesn't end in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164603#M12684</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;Yes that is what I meant. If the following steps are executed, then this shows the issue is in the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the following options before you call the macro function?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;options mprint macrogen symbolgen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're able to capture the log, the options should show you more information about the macro code, for example, what &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;macro variables are resolving to, which should help diagnose issues such as Tom described.&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, 05 Dec 2013 18:07:27 GMT</pubDate>
    <dc:creator>Amir</dc:creator>
    <dc:date>2013-12-05T18:07:27Z</dc:date>
    <item>
      <title>EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164596#M12677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sas code embedded into an enterprise guide project.&lt;/P&gt;&lt;P&gt;The code does what I want it to do - I rather complicated recursive macro which has a defined result.&lt;/P&gt;&lt;P&gt;There is one last table&amp;nbsp; which is is created fine, so there shouldn't be an endless recursion or endless loops.&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; executing the code, the code symbol stays green, and the following steps stay yellow, and don't get executed.&lt;/P&gt;&lt;P&gt;It can only be stopped by disconnecting the sas system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could go wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 07:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164596#M12677</guid>
      <dc:creator>Gregor</dc:creator>
      <dc:date>2013-12-05T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164597#M12678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code and the log?&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, 05 Dec 2013 12:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164597#M12678</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-12-05T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164598#M12679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was no log when I ended the process. The file lib.cashflows looks perfect.&lt;/P&gt;&lt;P&gt;I cannot attach the code here because the browser doesn't let me cut and paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a picture of the end of the macro read_alle and the execution statement of it:&lt;IMG alt="code.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4599_code.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some loops before that, but they all end perfectly befroe the data step with the creation of&lt;/P&gt;&lt;P&gt;lib.cashflows is executed.&lt;/P&gt;&lt;P&gt;Is there some sort of quit or run statement missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164598#M12679</guid>
      <dc:creator>Gregor</dc:creator>
      <dc:date>2013-12-05T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164599#M12680</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;Perhaps try temporarily commenting out the call to the macro function read_alle and just code a data step to output &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;lib.cashflows&lt;/SPAN&gt; to see if it is the macro function that is causing the issue.&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, 05 Dec 2013 14:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164599#M12680</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-12-05T14:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164600#M12681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="code2.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4601_code2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works fine. If tht's what you mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 14:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164600#M12681</guid>
      <dc:creator>Gregor</dc:creator>
      <dc:date>2013-12-05T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164601#M12682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the test that the macro uses to stop the recursion?&amp;nbsp; You should concentrate on that because it sounds like the recursion is continuing longer than you expected.&lt;/P&gt;&lt;P&gt;A common mistake with macros is to reference a macro variable within a macro without being clear whether the macro variable is local to this instance of the macro, global, or simply "external" to the current instance (either global or locally defined in an outer macro execution scope).&lt;/P&gt;&lt;P&gt;When this gets messed up there are two main risks:&lt;BR /&gt;1) It can either not return the value to the caller because the macro is local and its value disappears when the macro execution finishes.&lt;/P&gt;&lt;P&gt;2) It can override the instance of the macro variable a calling macro scope is using and cause an impact on the branching or looping of the calling macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes this is masked in testing because you might have already created a global macro variable with the same name that is used by your macro, but then when you re-run the macro in a new session that global macro variable does not exist and the macro variable becomes local to the macro execution environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 14:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164601#M12682</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-12-05T14:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164602#M12683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click the HTML button on the editor and insert HTLM formatted text.&amp;nbsp; Copy can copy as HTML from EG program editor if you happen to be using EG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 15:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164602#M12683</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-12-05T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164603#M12684</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;Yes that is what I meant. If the following steps are executed, then this shows the issue is in the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the following options before you call the macro function?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;options mprint macrogen symbolgen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're able to capture the log, the options should show you more information about the macro code, for example, what &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;macro variables are resolving to, which should help diagnose issues such as Tom described.&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, 05 Dec 2013 18:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164603#M12684</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-12-05T18:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: EPG: embedded sas code runs perfectly but doesn't end</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164604#M12685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody. I am very sorry that I haven't responded to your posts. My problem was depriorized by pre holiday stress, and when I came back from my vacations, the program suddenly ran perfectly. I know this was very bad style. Sorry again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 07:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EPG-embedded-sas-code-runs-perfectly-but-doesn-t-end/m-p/164604#M12685</guid>
      <dc:creator>Gregor</dc:creator>
      <dc:date>2014-02-11T07:29:40Z</dc:date>
    </item>
  </channel>
</rss>

