<?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: Do loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477578#M123021</link>
    <description>&lt;P&gt;Your code works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let totalobs = 100;&lt;/P&gt;&lt;P&gt;%let totalobs = &amp;amp;totalobs. + 1;&lt;/P&gt;&lt;P&gt;%put totalobs=&amp;amp;totalobs;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*or*/&lt;/P&gt;&lt;P&gt;%let totalobs = 100;&lt;/P&gt;&lt;P&gt;%let totalobs = %eval(&amp;amp;totalobs. + 1);&lt;/P&gt;&lt;P&gt;%put totalobs=&amp;amp;totalobs;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 16:03:06 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-07-12T16:03:06Z</dc:date>
    <item>
      <title>Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477577#M123020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do a do loop with proc sql. The following part of the script gives an error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let totalobs = 100;&lt;/P&gt;&lt;P&gt;%let totalobs = &amp;amp;totalobs. + 1;&lt;/P&gt;&lt;P&gt;%put totalobs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Open code statement recursion detected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what the issue is?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477577#M123020</guid>
      <dc:creator>parmis</dc:creator>
      <dc:date>2018-07-12T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477578#M123021</link>
      <description>&lt;P&gt;Your code works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let totalobs = 100;&lt;/P&gt;&lt;P&gt;%let totalobs = &amp;amp;totalobs. + 1;&lt;/P&gt;&lt;P&gt;%put totalobs=&amp;amp;totalobs;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*or*/&lt;/P&gt;&lt;P&gt;%let totalobs = 100;&lt;/P&gt;&lt;P&gt;%let totalobs = %eval(&amp;amp;totalobs. + 1);&lt;/P&gt;&lt;P&gt;%put totalobs=&amp;amp;totalobs;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477578#M123021</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-12T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477583#M123023</link>
      <description>&lt;P&gt;You might get that message if you made the mistake of omitting the first semicolon at the end of the first %LET statement.&amp;nbsp; If that's not the cause, we might need to see the log including the SQL piece.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477583#M123023</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-12T16:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477588#M123026</link>
      <description>&lt;P&gt;I still get the same error&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477588#M123026</guid>
      <dc:creator>parmis</dc:creator>
      <dc:date>2018-07-12T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477598#M123031</link>
      <description>&lt;P&gt;Try to restart SAS and rerun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1840 %let totalobs = 100;&lt;BR /&gt;1841&lt;BR /&gt;1842 %let totalobs = &amp;amp;totalobs. + 1;&lt;BR /&gt;1843&lt;BR /&gt;1844 %put totalobs=&amp;amp;totalobs;&lt;BR /&gt;totalobs=100 + 1&lt;BR /&gt;1845&lt;BR /&gt;1846&lt;BR /&gt;1847 /*or*/&lt;BR /&gt;1848&lt;BR /&gt;1849 %let totalobs = 100;&lt;BR /&gt;1850&lt;BR /&gt;1851 %let totalobs = %eval(&amp;amp;totalobs. + 1);&lt;BR /&gt;1852&lt;BR /&gt;1853 %put totalobs=&amp;amp;totalobs;&lt;BR /&gt;totalobs=101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477598#M123031</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-12T16:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477661#M123071</link>
      <description>&lt;P&gt;It works. Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop/m-p/477661#M123071</guid>
      <dc:creator>parmis</dc:creator>
      <dc:date>2018-07-12T19:20:27Z</dc:date>
    </item>
  </channel>
</rss>

