<?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: Run same program several times in a row in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184594#M14167</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 provide some test data and what you want out at the end.&amp;nbsp; At a guess, if what you want is a file to look like another, then use that as a template and work backwards rather than trying to loop over to get to it, reason being you then have a finite point to work for back to base, whereas the way your are doing it is: keep doing this until some criteria is met.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 16:41:01 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-01-15T16:41:01Z</dc:date>
    <item>
      <title>Run same program several times in a row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184593#M14166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a process flow which includes a program that uses PROC SQL to join a dataset to an offset of a copy of itself and fill in some additional data.&amp;nbsp; I am supposed to re-run this program until there are no differences between the dataset and its copy (currently, I refresh the query output several times, then look at the proc compare output from a different program, then click refresh on the iterative query a bunch more times, check proc compare again, etc.).&amp;nbsp; As such t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;here is no negative impact on the dataset from running the programs more times than necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to run the process flow in a certain order, in the middle of which run my iterative query some large number of times (by construction it shouldn't take more than 35-50).&amp;nbsp; I tried using an ordered list, but it seemed like I was not able to add the same query more than once to the ordered list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any tool in EG to do what I have described?&amp;nbsp; Or something I can add to the program (which consists solely of a PROC SQL) to make the program perform the iteration 50 times?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 15:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184593#M14166</guid>
      <dc:creator>WiDem</dc:creator>
      <dc:date>2015-01-15T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run same program several times in a row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184594#M14167</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 provide some test data and what you want out at the end.&amp;nbsp; At a guess, if what you want is a file to look like another, then use that as a template and work backwards rather than trying to loop over to get to it, reason being you then have a finite point to work for back to base, whereas the way your are doing it is: keep doing this until some criteria is met.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184594#M14167</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-15T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run same program several times in a row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184595#M14168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you need a macro program with ordered steps.&amp;nbsp; The macro program would simply start by executing you compare.&amp;nbsp; If differences exist and you need run the remaining program, then the macro should execute the remaining steps.&amp;nbsp; Otherwise it should stop and perhaps display a message that there are no more iterations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184595#M14168</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2015-01-15T17:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run same program several times in a row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184596#M14169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a utility to run a program multiple times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Routine_CxInclude" title="http://www.sascommunity.org/wiki/Routine_CxInclude"&gt;Routine CxInclude - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to create a control data set with the parameters of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to exit the loop on some condition&lt;/P&gt;&lt;P&gt;you'll have to add bypass logic inside the program being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sysfunc(ifc(...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the trick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Using_Functions_SYSFUNC_and_IFC_to_conditionally_execute_statements_in_open_code" title="http://www.sascommunity.org/wiki/Using_Functions_SYSFUNC_and_IFC_to_conditionally_execute_statements_in_open_code"&gt;Using Functions SYSFUNC and IFC to conditionally execute statements in open code - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; %include maven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 02:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184596#M14169</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2015-01-16T02:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run same program several times in a row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184597#M14170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... or you can put your program in a macro&lt;/P&gt;&lt;P&gt;and use this utility to run the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Macro_CallMacr" title="http://www.sascommunity.org/wiki/Macro_CallMacr"&gt;Macro CallMacr - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; macro maven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Macro_Do-Loop" title="http://www.sascommunity.org/wiki/Macro_Do-Loop"&gt;http://www.sascommunity.org/wiki/Macro_Do-Loop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 02:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-same-program-several-times-in-a-row/m-p/184597#M14170</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2015-01-16T02:55:48Z</dc:date>
    </item>
  </channel>
</rss>

