<?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/335268#M75864</link>
    <description>Yes, but&lt;BR /&gt;If your interest rate (0.045) for one month and want to calculate simple annual interest multiply by 12&lt;BR /&gt;Cum=cum+(1.045)*12</description>
    <pubDate>Thu, 23 Feb 2017 13:00:03 GMT</pubDate>
    <dc:creator>Yavuz</dc:creator>
    <dc:date>2017-02-23T13:00:03Z</dc:date>
    <item>
      <title>do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334922#M75690</link>
      <description>&lt;P&gt;need solution for below question by using do loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;each year an employee invests 5000 in an account determine the value of account after 3 year based on constant intrest rate of 4.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334922#M75690</guid>
      <dc:creator>Ravikumarpa4</dc:creator>
      <dc:date>2017-02-22T12:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334925#M75692</link>
      <description>&lt;P&gt;Solution is to use SAS code. &amp;nbsp;Realy what do you expect? &amp;nbsp;You have provided nothing, where is the test data (in the form of a datastep), where is the example output. &amp;nbsp;What code have you tried etc.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334925#M75692</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-22T12:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334971#M75705</link>
      <description>&lt;P&gt;There's a function for that: MORT (see:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245917.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245917.htm&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to use it, you'll have to specify whether the interest is compounded &amp;nbsp;daily, monthly or whatever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 14:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/334971#M75705</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-22T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335196#M75833</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
cum=0;
do n=0 to 2;
 cum=cum+1.045**n;
 
 total=5000*cum;
 year=n+1;
 put year= total= ;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2017 04:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335196#M75833</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-23T04:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335206#M75841</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;thanks for your code. i got the what i'm expecting but need one clarification on how you deceided &amp;nbsp;'cum&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;=&lt;/FONT&gt;&lt;/SPAN&gt;cum&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;+&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1.045&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;**&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;&lt;FONT color="#0000ff"&gt;n&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;;'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335206#M75841</guid>
      <dc:creator>Ravikumarpa4</dc:creator>
      <dc:date>2017-02-23T05:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335207#M75842</link>
      <description>Hi, your question is about to "compound interest calculation" which is calculated as c=c+(1+r)^n classical formula.&lt;BR /&gt;C is capital, r is interest rate, n is period.&lt;BR /&gt;Thanks for Ksharp's solution.</description>
      <pubDate>Thu, 23 Feb 2017 06:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335207#M75842</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2017-02-23T06:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335213#M75844</link>
      <description>&lt;P&gt;ok thanks but if want calcualte on simple interest then it will be 'cum&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;=&lt;/FONT&gt;&lt;/SPAN&gt;cum&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;+&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1.045&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;;' right?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 08:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335213#M75844</guid>
      <dc:creator>Ravikumarpa4</dc:creator>
      <dc:date>2017-02-23T08:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335237#M75854</link>
      <description>&lt;P&gt;It is equivalent with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;1+1.045&lt;/P&gt;
&lt;P&gt;1+1.045+1.045**2&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 11:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335237#M75854</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-23T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335268#M75864</link>
      <description>Yes, but&lt;BR /&gt;If your interest rate (0.045) for one month and want to calculate simple annual interest multiply by 12&lt;BR /&gt;Cum=cum+(1.045)*12</description>
      <pubDate>Thu, 23 Feb 2017 13:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loop/m-p/335268#M75864</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2017-02-23T13:00:03Z</dc:date>
    </item>
  </channel>
</rss>

