<?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 question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406069#M279223</link>
    <description>&lt;P&gt;1.if i invest $5000 each year in account .&amp;nbsp; after 15 yrs annual rate=10% and compound annual interest rate=10%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.also if a fixed term deposit of 25 yrs . Calculate total amount end of term with initial amount 1,00,000. annual interest rate 7%&lt;/P&gt;&lt;P&gt;.find compounded annually and monthly .&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 18:17:55 GMT</pubDate>
    <dc:creator>mehak</dc:creator>
    <dc:date>2017-10-20T18:17:55Z</dc:date>
    <item>
      <title>Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406069#M279223</link>
      <description>&lt;P&gt;1.if i invest $5000 each year in account .&amp;nbsp; after 15 yrs annual rate=10% and compound annual interest rate=10%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.also if a fixed term deposit of 25 yrs . Calculate total amount end of term with initial amount 1,00,000. annual interest rate 7%&lt;/P&gt;&lt;P&gt;.find compounded annually and monthly .&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 18:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406069#M279223</guid>
      <dc:creator>mehak</dc:creator>
      <dc:date>2017-10-20T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406081#M279224</link>
      <description>&lt;P&gt;Sounds like homework so I'll provide a&amp;nbsp;couple&amp;nbsp;hints:&amp;nbsp;Functions available in data step coding: SAVING&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that many of the finance functions have 3, 4 or more parameters. The answer depends on which one you leave as missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Express interest as decimals: 0.05 instead of 5%, and pay attention to compounding intervals.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 18:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406081#M279224</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-20T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406086#M279225</link>
      <description>&lt;P&gt;That's your homework. What's your question for us?&lt;/P&gt;
&lt;P&gt;Note: that it's less likely&amp;nbsp;to get an answer to homework style questions without showing any effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172699"&gt;@mehak&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;1.if i invest $5000 each year in account .&amp;nbsp; after 15 yrs annual rate=10% and compound annual interest rate=10%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.also if a fixed term deposit of 25 yrs . Calculate total amount end of term with initial amount 1,00,000. annual interest rate 7%&lt;/P&gt;
&lt;P&gt;.find compounded annually and monthly .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 19:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406086#M279225</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-20T19:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406210#M279226</link>
      <description>&lt;P&gt;is this the correct way to solve 1 st one&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.invest;&lt;BR /&gt;do month=1 to 15;&lt;BR /&gt;Capital+5000;&lt;BR /&gt;capital+(capital*.10);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;data work.invest;&lt;BR /&gt;amount=500000;&lt;BR /&gt;rate=0.07;&lt;BR /&gt;do month =1 to 25 ;&lt;BR /&gt;earned+5000;&lt;BR /&gt;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;title 'output dataset :Compounded monthly';&lt;BR /&gt;run;&lt;BR /&gt;proc print data=work.invest;&lt;BR /&gt;title 'output dataset :Compound Monthly';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Compounded ANNUALLY */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data work.invest;&lt;BR /&gt;amount=500000;&lt;BR /&gt;rate=0.07;&lt;BR /&gt;do year =1 to 25;&lt;BR /&gt;earned+5000;&lt;BR /&gt;earned+(amount+earned)*rate;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;title 'output dataset :Compounded annually';&lt;BR /&gt;run;&lt;BR /&gt;proc print data=work.invest;&lt;BR /&gt;title 'output dataset :Compound annually';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 05:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406210#M279226</guid>
      <dc:creator>mehak</dc:creator>
      <dc:date>2017-10-21T05:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406211#M279227</link>
      <description>&lt;P&gt;is this the correct way to solve 1 st one&lt;/P&gt;&lt;P&gt;data work.invest;&lt;/P&gt;&lt;P&gt;do month=1 to 15;&lt;/P&gt;&lt;P&gt;Capital+5000;&lt;/P&gt;&lt;P&gt;capital+(capital*.10);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. data work.invest;&lt;/P&gt;&lt;P&gt;amount=500000;&lt;/P&gt;&lt;P&gt;rate=0.07;&lt;/P&gt;&lt;P&gt;do month =1 to 25 ;&lt;/P&gt;&lt;P&gt;earned+5000;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title 'output dataset :Compounded monthly';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=work.invest;&lt;/P&gt;&lt;P&gt;title 'output dataset :Compound Monthly';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* Compounded ANNUALLY */&lt;/P&gt;&lt;P&gt;data work.invest;&lt;/P&gt;&lt;P&gt;amount=500000;&lt;/P&gt;&lt;P&gt;rate=0.07;&lt;/P&gt;&lt;P&gt;do year =1 to 25;&lt;/P&gt;&lt;P&gt;earned+5000;&lt;/P&gt;&lt;P&gt;earned+(amount+earned)*rate;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title 'output dataset :Compounded annually';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=work.invest;&lt;/P&gt;&lt;P&gt;title 'output dataset :Compound annually';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 05:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/406211#M279227</guid>
      <dc:creator>mehak</dc:creator>
      <dc:date>2017-10-21T05:20:42Z</dc:date>
    </item>
  </channel>
</rss>

