<?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: Macro Do Loops does only one iteration in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330570#M1660</link>
    <description>&lt;P&gt;Your macro has a %DO loop that uses the macro variable I.&lt;/P&gt;
&lt;P&gt;One possiblity is that somewhere in some of the included program files&amp;nbsp;you are setting the value of I to 3 or more so that the DO loop ends.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 18:39:09 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-02-07T18:39:09Z</dc:date>
    <item>
      <title>Macro Do Loops does only one iteration</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330567#M1659</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a simulation experiment in &amp;nbsp;a loop. I have written a macro to run simulation for multiple times. The macro runs only once and produces no errors or warnings. I checked the syntax and also spent quite some time on debugging this. Everything seems fine.&lt;/P&gt;&lt;P&gt;Am i missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330567#M1659</guid>
      <dc:creator>karthick_gopal</dc:creator>
      <dc:date>2017-02-07T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Do Loops does only one iteration</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330570#M1660</link>
      <description>&lt;P&gt;Your macro has a %DO loop that uses the macro variable I.&lt;/P&gt;
&lt;P&gt;One possiblity is that somewhere in some of the included program files&amp;nbsp;you are setting the value of I to 3 or more so that the DO loop ends.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330570#M1660</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-02-07T18:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Do Loops does only one iteration</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330574#M1661</link>
      <description>&lt;P&gt;You might try something like&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; After datamanipulation.sas i=&amp;amp;i;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;after each of the %include.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Or if you have any macros in any them ensure that all of their macro varaibles are explicitly set to Local.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Macro-Do-Loops-does-only-one-iteration/m-p/330574#M1661</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-07T18:47:58Z</dc:date>
    </item>
  </channel>
</rss>

