<?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 chain process flows ; loop in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41397#M4909</link>
    <description>Hi:&lt;BR /&gt;
I am trying to automate something in EG. I have a process flow that starts up with a macro variable. I repeat this manually. I was wandering if I could create another process flow that will trigger another one and do some kind of a loop. any ideas?</description>
    <pubDate>Tue, 30 Nov 2010 14:49:34 GMT</pubDate>
    <dc:creator>jplarios</dc:creator>
    <dc:date>2010-11-30T14:49:34Z</dc:date>
    <item>
      <title>chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41397#M4909</link>
      <description>Hi:&lt;BR /&gt;
I am trying to automate something in EG. I have a process flow that starts up with a macro variable. I repeat this manually. I was wandering if I could create another process flow that will trigger another one and do some kind of a loop. any ideas?</description>
      <pubDate>Tue, 30 Nov 2010 14:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41397#M4909</guid>
      <dc:creator>jplarios</dc:creator>
      <dc:date>2010-11-30T14:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41398#M4910</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
One way would be to add a code node at the very beginning of your existing flow containing something like:&lt;BR /&gt;
&lt;BR /&gt;
%macro LoopOverFlow(macrovar);&lt;BR /&gt;
&lt;BR /&gt;
And then at the very end of your flow you add a second code node containing:&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
input var $;&lt;BR /&gt;
call execute('%LoopOverFlow('||var||')');&lt;BR /&gt;
datalines;&lt;BR /&gt;
abc&lt;BR /&gt;
def&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
And then just run the whole flow. Never tried it but that should let it loop.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 30 Nov 2010 20:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41398#M4910</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-11-30T20:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41399#M4911</link>
      <description>There isn't a way to chain process flows or represent a loop construct within SAS Enterprise Guide, at the moment.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 30 Nov 2010 20:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41399#M4911</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-11-30T20:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41400#M4912</link>
      <description>Hi Chris&lt;BR /&gt;
&lt;BR /&gt;
When I first read your answer I thought you're talking about some wizard generated loop construct.&lt;BR /&gt;
&lt;BR /&gt;
I would have bet that my proposition works (just pack the whole flow in a macro and then execute the macro).&lt;BR /&gt;
&lt;BR /&gt;
So I tried now with a very simple example - and yes, you're right, it didn't work when I ran the whole branch (EG 4.3).&lt;BR /&gt;
&lt;BR /&gt;
That actually confused me quite a bit so I exported the whole branch and copied it into a single code node. And then I executed this code node and it worked. Hmmm...!!&lt;BR /&gt;
&lt;BR /&gt;
Honestly, Chris! If you want EG to be a developer’s tool then you will have to have a developer mode added which basically means:&lt;BR /&gt;
- Add NOTHING to the code written&lt;BR /&gt;
- WYSIWYG in regards of code&lt;BR /&gt;
&lt;BR /&gt;
I have currently to use EG for writing ETL processes which in the end are executed in batch. &lt;BR /&gt;
&lt;BR /&gt;
The only thing which I prefer over using good old PC SAS is that I just can disconnect/reconnect if my code goes berserk and that it’s very easy to execute the same code in different environments/on different servers.&lt;BR /&gt;
&lt;BR /&gt;
But besides of very basic unit testing EG is more of a hassle than a help. &lt;BR /&gt;
&lt;BR /&gt;
I sure can’t use any of the wizards because as we know if I later on would like to export the code I will get heaps of EG “garbage” which might even not work in batch unless I tweak the config.&lt;BR /&gt;
&lt;BR /&gt;
And now I even learn that an exported flow executed via EG doesn’t behave the same as the flow executed directly in EG. I think no further comment is needed here.&lt;BR /&gt;
&lt;BR /&gt;
Sorry Chris for my tone. I’m just a bit frustrated in the moment. &lt;BR /&gt;
&lt;BR /&gt;
I appreciate your commitment and contributions to make the SAS world a better place a lot.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Patrick

Message was edited by: Patrick</description>
      <pubDate>Wed, 01 Dec 2010 11:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41400#M4912</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-12-01T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41401#M4913</link>
      <description>Hi, guys&lt;BR /&gt;
&lt;BR /&gt;
This brings up somewhat of a philosophical issue that I grapple with. As soon as I see "automate", I think SAS DIS. I generally think of EG as an adhoc analytics tool.&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure it's fair to criticize EG for not having "industrial" features that one would associate with a production line.&lt;BR /&gt;
&lt;BR /&gt;
I'd be interested in the views of others who use EG and the other SAS tools.&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
      <pubDate>Thu, 02 Dec 2010 01:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41401#M4913</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2010-12-02T01:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41402#M4914</link>
      <description>Fully Agree...&lt;BR /&gt;
&lt;BR /&gt;
EG Adhoc analysis etc, DIS ETL automation....  Bring on the day that we can open EG project in DIS and convert, or be able to deploy eg jobs to DIS....&lt;BR /&gt;
&lt;BR /&gt;
Barry</description>
      <pubDate>Thu, 02 Dec 2010 02:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41402#M4914</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-12-02T02:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: chain process flows ; loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41403#M4915</link>
      <description>Yep, I fully agree.&lt;BR /&gt;
&lt;BR /&gt;
EG is an analysts tool!&lt;BR /&gt;
&lt;BR /&gt;
The only issue I have: It's now also promoted as a developers tool and therefore new SAS deployments don't even install PC SAS anymore (and not everybody got DIS).</description>
      <pubDate>Thu, 02 Dec 2010 13:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/chain-process-flows-loop/m-p/41403#M4915</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-12-02T13:11:22Z</dc:date>
    </item>
  </channel>
</rss>

