<?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 Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292962#M20009</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have a project with ~40&amp;nbsp;Process Flows.&lt;/P&gt;&lt;P&gt;2. I would like to run 25 out of the 40&amp;nbsp;&lt;SPAN&gt;Process Flows every morning from within&amp;nbsp;EG 7.11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. What would be the best way to do this? I saw few suggestions on how to do this, but all of them are not relevant to my need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.1. Using Ordered List (&lt;A href="http://stackoverflow.com/questions/22388213/sas-enterprise-run-multiple-process-flows-at-once" target="_blank"&gt;http://stackoverflow.com/questions/22388213/sas-enterprise-run-multiple-process-flows-at-once&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.2. Picking the 25 process flows and then Right-Click and Run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.3. Build the project as a stored process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. What can I do? I saw that there is an option to use DS2 and Run() method, but I'm not sure it is relevant for this specific use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Aug 2016 08:47:53 GMT</pubDate>
    <dc:creator>DanielDor</dc:creator>
    <dc:date>2016-08-21T08:47:53Z</dc:date>
    <item>
      <title>Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292962#M20009</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have a project with ~40&amp;nbsp;Process Flows.&lt;/P&gt;&lt;P&gt;2. I would like to run 25 out of the 40&amp;nbsp;&lt;SPAN&gt;Process Flows every morning from within&amp;nbsp;EG 7.11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. What would be the best way to do this? I saw few suggestions on how to do this, but all of them are not relevant to my need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.1. Using Ordered List (&lt;A href="http://stackoverflow.com/questions/22388213/sas-enterprise-run-multiple-process-flows-at-once" target="_blank"&gt;http://stackoverflow.com/questions/22388213/sas-enterprise-run-multiple-process-flows-at-once&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.2. Picking the 25 process flows and then Right-Click and Run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.3. Build the project as a stored process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. What can I do? I saw that there is an option to use DS2 and Run() method, but I'm not sure it is relevant for this specific use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2016 08:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292962#M20009</guid>
      <dc:creator>DanielDor</dc:creator>
      <dc:date>2016-08-21T08:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292964#M20010</link>
      <description>&lt;P&gt;If you want to fully automate then&amp;nbsp;export the 25 process flows as SAS code and run that as a scheduled SAS batch job, preferably on your SAS server as its a lot more reliable than your PC.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2016 08:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292964#M20010</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-08-21T08:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292965#M20011</link>
      <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt response. Currently, I’m working on SAS EG Desktop version (we don’t have a Server on my organization).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How it can be done on SAS EG Desktop version? Is there any way to write SAS Code which run all the process flows one after the other?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2016 09:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/292965#M20011</guid>
      <dc:creator>DanielDor</dc:creator>
      <dc:date>2016-08-21T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293005#M20017</link>
      <description>&lt;P&gt;Where is your SAS code running then? On your desktop? If it is then you can still schedule a SAS batch job on your desktop with Windows task scheduler.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2016 19:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293005#M20017</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-08-21T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293126#M20038</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;This is a related topic and probably does not directly answer the OPs question.

This is a bare minium systask macro driver, without checkpoint restart or programmable conditional processing.
&lt;BR /&gt;I have posted solutions like this using a 'clickable' list of processes.&lt;BR /&gt;Unfortunately my SCL code will not run in EG.&lt;BR /&gt;Just to be safe programmers might consider either RShiny or Python Django with&lt;BR /&gt;'localhost', just in case SAS drops strored process support to get&lt;BR /&gt;users to migrate to the more web centric SAS Studio.&lt;BR /&gt;&lt;BR /&gt;I have posted config file driven processing on SAS-L.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%macro sho_100(fro=Asia,typ=boot);&lt;BR /&gt; data &amp;amp;fro;&lt;BR /&gt; set sashelp.shoes(where=(product="&amp;amp;typ" and region="fro"));&lt;BR /&gt; run;quit;&lt;BR /&gt;%mend sho_100;&lt;BR /&gt;&lt;BR /&gt;%macro sho_200(fro=Asia,typ=boot,minstore=2);&lt;BR /&gt; data &amp;amp;fro;&lt;BR /&gt; set sashelp.shoes(where=(product="&amp;amp;typ" and region="fro" and stores&amp;gt;&amp;amp;minstore));&lt;BR /&gt; run;quit;&lt;BR /&gt;%mend sho_200;&lt;BR /&gt;&lt;BR /&gt;%let _r=/root;&lt;BR /&gt;&lt;BR /&gt;* put in your autoexec;&lt;BR /&gt;%let _s=%sysfunc(compbl(/rjd/.../sas/sashome9.3/SASFoundation/9.4/sasexe/sas&lt;BR /&gt; -sysin /rjd/.../sas/contract/SASEG_files/rde250/oto/dummy.sas&lt;BR /&gt; -sasautos /rjd/.../sas/contract/SASEG_files/rde250/oto&lt;BR /&gt; -autoexec /rjd/.../sas/contract/SASEG_files/rde250/oto/batch_autoexec.sas));&lt;BR /&gt;&lt;BR /&gt;systask kill xeq1 xeq2;&lt;BR /&gt;systask command "&amp;amp;_s -memsize 2g -termstmt %nrstr(%sho_100(fro=Asia,typ=boot) -altlog &amp;amp;_r/log/xeq1.log" taskname=xeq1;&lt;BR /&gt;systask command "&amp;amp;_s -memsize 48g -termstmt %nrstr(%sho_100(fro=Canada,typ=boot) -altlog &amp;amp;_r/log/xeq2.log" taskname=xeq2;&lt;BR /&gt;waitfor xeq1 xeq2;&lt;BR /&gt;systask command "&amp;amp;_s -memsize 2g -termstmt %nrstr(% -altlog &amp;amp;_r/log/xeq33.log" taskname=xeq3;&lt;BR /&gt;systask command "perl sample.pl -log &amp;amp;_r/log/xeq4.log" taskname=xeq4;&lt;BR /&gt;systask command "R sample.R -log &amp;amp;_r/log/xeq5.log" taskname=xeq4;&lt;BR /&gt;systask command "python sample.py -log &amp;amp;_r/log/xeq5.log" taskname=xeq5;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Aug 2016 13:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293126#M20038</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-08-22T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293155#M20039</link>
      <description>&lt;P&gt;Another option is to use EG's automation interface...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-With a process flow visible in EG, select &lt;STRONG&gt;Schedule-&amp;gt;&amp;lt;processFlowName&amp;gt;&lt;/STRONG&gt; on the contextual toolbar (above the process flow) to schedule a single process flow&lt;/P&gt;
&lt;P&gt;-That will create a EGScript1.vbs file that runs a single process flow (and a Windows Scheduled Task that executes&amp;nbsp;the&amp;nbsp;VBScript file&amp;nbsp;on a schedule you specify)&lt;/P&gt;
&lt;P&gt;-You can edit the VBScript code (without too much trouble if you have some basic programming knowledge) to run the 25 desired process flows instead of a single one&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example (just the section of the&amp;nbsp;EGScript1.vbs&amp;nbsp;I edited):&lt;BR /&gt;(I confirmed it works.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    '-----
    'Get The Container Collection and Object
    '-----    
    Set containerColl = prjObject.ContainerCollection
    If Checkerror("Project.ContainerCollection") = True Then
        Exit Sub
    End If
    
    Dim i       ' As Long
    Dim count   ' As Long
    count = containerColl.count
    For i = 0 To count - 1
        Set containerObject = containerColl.Item(i)
        If Checkerror("ContainerCollection.Item") = True Then
            Exit Sub
        End If
        
        'Run the process flows with the desired names
        If (containerObject.Name = "Process Flow1" Or _
            containerObject.Name = "Process Flow3") Then
            '----
            ' Run the Container
            '----
            containerObject.Run
            If Checkerror("Container.Run") = True Then
                Exit Sub
            End If               
        End If
    Next &lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Aug 2016 16:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293155#M20039</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2016-08-22T16:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293336#M20045</link>
      <description>&lt;P&gt;Great! Thanks a lot for the info &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've solved the issue by doing the following process:&lt;/P&gt;&lt;P&gt;A. dividing my project to 4&amp;nbsp;different projects:&lt;/P&gt;&lt;P&gt;1. Extract Project&lt;/P&gt;&lt;P&gt;2. Transform Project&lt;/P&gt;&lt;P&gt;3. Load Project&lt;/P&gt;&lt;P&gt;4. Managament Project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B. Export the 3 uppers projects as SAS Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C. Running the 3 SAS codes from Management Project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 04:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/293336#M20045</guid>
      <dc:creator>DanielDor</dc:creator>
      <dc:date>2016-08-23T04:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/412144#M26474</link>
      <description>&lt;P&gt;Thanks for sharing the vbs code! I tested the code and it seem to work in serial, meaning "containerObject.Run" is blocking, preventing multiple processing. Until one object is done, the next one won't kick off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/412144#M26474</guid>
      <dc:creator>luboxing</dc:creator>
      <dc:date>2017-11-09T21:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/412933#M26551</link>
      <description>&lt;P&gt;While you can run process flows asynchronously (at the same time)&amp;nbsp;manually in the UI&amp;nbsp;(multi-select all the process flows you want to run in the Project Tree, right-click and select Run), the EG scripting interface currently only supports running synchronously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Note: If the runnable items in your process flows are assigned to run on the same server, they will run synchronously by default.&amp;nbsp; If you want to spawn additional sessions on the same server to run items in parallel, you can turn on the File-&amp;gt;Project Properties-&amp;gt;Code Submission-&amp;gt;"Allow parallel execution on the same server" option.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/412933#M26551</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-11-13T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run multiple Process Flows at once using SAS Code (on EG 7.11 HF3)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/413493#M26588</link>
      <description>&lt;P&gt;Thanks Casey! It really works!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 21:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-multiple-Process-Flows-at-once-using-SAS-Code-on-EG-7-11-HF3/m-p/413493#M26588</guid>
      <dc:creator>luboxing</dc:creator>
      <dc:date>2017-11-14T21:57:10Z</dc:date>
    </item>
  </channel>
</rss>

