<?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 Do Loop in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551638#M9031</link>
    <description>&lt;P&gt;data hadoopdata;&lt;BR /&gt;price =100000;&lt;BR /&gt;do until(price gt 500000);&lt;BR /&gt;year+1;&lt;BR /&gt;price+(price*.10);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to interprate DO WHILE statement that will generates the same results?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 10:32:49 GMT</pubDate>
    <dc:creator>swayto</dc:creator>
    <dc:date>2019-04-17T10:32:49Z</dc:date>
    <item>
      <title>Do Loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551638#M9031</link>
      <description>&lt;P&gt;data hadoopdata;&lt;BR /&gt;price =100000;&lt;BR /&gt;do until(price gt 500000);&lt;BR /&gt;year+1;&lt;BR /&gt;price+(price*.10);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to interprate DO WHILE statement that will generates the same results?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551638#M9031</guid>
      <dc:creator>swayto</dc:creator>
      <dc:date>2019-04-17T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Do Loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551645#M9032</link>
      <description>&lt;P&gt;If you want to translate this to a do-while loop, then you could try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data hadoopdata;
   price =100000;
   do while(price le 500000);
      year+1;
      price+(price*.10);
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551645#M9032</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-04-17T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do Loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551662#M9034</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134135"&gt;@swayto&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data hadoopdata;&lt;BR /&gt;price =100000;&lt;BR /&gt;do until(price gt 500000);&lt;BR /&gt;year+1;&lt;BR /&gt;price+(price*.10);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to interprate DO WHILE statement that will generates the same results?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Would you please be kind enough to explain your question in more detail? It's not really clear what you are asking.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551662#M9034</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-17T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Do Loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551756#M9043</link>
      <description>&lt;P&gt;Technically, the DO UNTIL loop executes at least once even if the original value of PRICE is 600000 instead of 100000.&amp;nbsp; To get a DO WHILE loop to produce the same outcome, you need to allow for that fact.&amp;nbsp; So:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data hadoopdata;
price=100000;
year+1;
price = price * 1.1;
do while (price le 500000);
  year + 1;
  price = price * 1.1;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 14:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Do-Loop/m-p/551756#M9043</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-17T14:36:33Z</dc:date>
    </item>
  </channel>
</rss>

