<?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 Execute Process Flow from Macro Program in EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Execute-Process-Flow-from-Macro-Program-in-EG/m-p/673138#M202440</link>
    <description>&lt;P&gt;I have code that checks the last modified date of a specific dataset and compares it to the current system date. If the modified date of the desired dataset does not match the current system date, the macro then checks a specified number of times at set intervals (10 minutes) to see if the dataset is current. This code works as intended - no issues. What I need help with is when the dates match, how can I execute a process flow (or set of process flows) in the EG project where the macro resides?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;MODATETIME2 = &amp;amp;NOW2 %THEN %DO;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; %PUT NOTE:EXECUTE DESIRED PROCESS FLOWS&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;; &amp;lt;&amp;lt;&amp;lt;--what goes here to execute one or more process flows in the project?&lt;BR /&gt;&amp;nbsp; &amp;nbsp;*exit the macro once execution completes;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%return;&lt;BR /&gt;%END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I have %put statements indicating the dates match while I resolve this issue.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 14:11:35 GMT</pubDate>
    <dc:creator>Doug____</dc:creator>
    <dc:date>2020-07-29T14:11:35Z</dc:date>
    <item>
      <title>Execute Process Flow from Macro Program in EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execute-Process-Flow-from-Macro-Program-in-EG/m-p/673138#M202440</link>
      <description>&lt;P&gt;I have code that checks the last modified date of a specific dataset and compares it to the current system date. If the modified date of the desired dataset does not match the current system date, the macro then checks a specified number of times at set intervals (10 minutes) to see if the dataset is current. This code works as intended - no issues. What I need help with is when the dates match, how can I execute a process flow (or set of process flows) in the EG project where the macro resides?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;MODATETIME2 = &amp;amp;NOW2 %THEN %DO;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; %PUT NOTE:EXECUTE DESIRED PROCESS FLOWS&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;; &amp;lt;&amp;lt;&amp;lt;--what goes here to execute one or more process flows in the project?&lt;BR /&gt;&amp;nbsp; &amp;nbsp;*exit the macro once execution completes;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%return;&lt;BR /&gt;%END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I have %put statements indicating the dates match while I resolve this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execute-Process-Flow-from-Macro-Program-in-EG/m-p/673138#M202440</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2020-07-29T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Process Flow from Macro Program in EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execute-Process-Flow-from-Macro-Program-in-EG/m-p/673323#M202539</link>
      <description>&lt;P&gt;Why don't you set this as the first step in the process flow? When the step completes successfully, the next step executes.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 22:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execute-Process-Flow-from-Macro-Program-in-EG/m-p/673323#M202539</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-29T22:33:11Z</dc:date>
    </item>
  </channel>
</rss>

