<?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 Until Question in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59394#M6058</link>
    <description>Hi there.&lt;BR /&gt;
It's said in SAS texts that statements in the Do Until execute at least once. Here is an example:&lt;BR /&gt;
data invest;&lt;BR /&gt;
capital = 5000;&lt;BR /&gt;
do until (capital le 5000);&lt;BR /&gt;
capital+2000;&lt;BR /&gt;
capital+capital*0.1;&lt;BR /&gt;
year+1;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
The expected result to me is: capiatl=7700 and year=1. The actual result is capital=. and year=7341&lt;BR /&gt;
Why is that?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Ramin&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: RaminR

Message was edited by: RaminR</description>
    <pubDate>Tue, 04 Nov 2008 12:40:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-04T12:40:07Z</dc:date>
    <item>
      <title>Do Until Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59394#M6058</link>
      <description>Hi there.&lt;BR /&gt;
It's said in SAS texts that statements in the Do Until execute at least once. Here is an example:&lt;BR /&gt;
data invest;&lt;BR /&gt;
capital = 5000;&lt;BR /&gt;
do until (capital le 5000);&lt;BR /&gt;
capital+2000;&lt;BR /&gt;
capital+capital*0.1;&lt;BR /&gt;
year+1;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
The expected result to me is: capiatl=7700 and year=1. The actual result is capital=. and year=7341&lt;BR /&gt;
Why is that?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Ramin&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: RaminR

Message was edited by: RaminR</description>
      <pubDate>Tue, 04 Nov 2008 12:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59394#M6058</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-04T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Do Until Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59395#M6059</link>
      <description>The DO UNTIL condition is evaluated at the end of the loop (but only after at least one pass is completed):&lt;BR /&gt;
&lt;BR /&gt;
Add the command below to your DO loop (use PUT if not yet at SAS 9) - it will help reveal the events of your DO loop:&lt;BR /&gt;
&lt;BR /&gt;
putlog _all_; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Also I ran you code and the SASLOG generated the following message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;SNIP&gt;&lt;BR /&gt;
capital=1.630347E308 year=7339 _ERROR_=0 _N_=1&lt;BR /&gt;
capital=1.793382E308 year=7340 _ERROR_=0 _N_=1&lt;BR /&gt;
NOTE: A number has become too large at line 5 column 16.&lt;BR /&gt;
      The number is &amp;gt;1.80E+308 or &amp;lt;-1.80E+308.&lt;BR /&gt;
capital=. year=7341 _ERROR_=1 _N_=1&lt;BR /&gt;
capital=. year=7341 _ERROR_=1 _N_=1&lt;BR /&gt;
NOTE: Mathematical operations could not be performed at the following places. The results of&lt;BR /&gt;
      the operations have been set to missing values.&lt;BR /&gt;
      Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;
      1 at 5:16&lt;BR /&gt;
NOTE: The data set WORK.INVEST has 1 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/SNIP&gt;</description>
      <pubDate>Tue, 04 Nov 2008 13:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59395#M6059</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-11-04T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do Until Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59396#M6060</link>
      <description>Thanks Scott. Yes I see I've made a terrible mistake. Thanks for your time on this.</description>
      <pubDate>Wed, 05 Nov 2008 06:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Do-Until-Question/m-p/59396#M6060</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-05T06:14:07Z</dc:date>
    </item>
  </channel>
</rss>

