<?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 write a code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350798#M81592</link>
    <description>&lt;P&gt;In a fixed term deposit of 25 years calculate the total amount at the end of term with initial&lt;BR /&gt;amount of 5,00,00 and annual interest rate of 7% i) compounded annually II) compaunded monthly. show the amount accured at monthly level.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 12:04:42 GMT</pubDate>
    <dc:creator>niladri_routray</dc:creator>
    <dc:date>2017-04-18T12:04:42Z</dc:date>
    <item>
      <title>write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350798#M81592</link>
      <description>&lt;P&gt;In a fixed term deposit of 25 years calculate the total amount at the end of term with initial&lt;BR /&gt;amount of 5,00,00 and annual interest rate of 7% i) compounded annually II) compaunded monthly. show the amount accured at monthly level.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350798#M81592</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-18T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350805#M81597</link>
      <description>&lt;P&gt;Please show the code you already tried, and where the result differed from your expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350805#M81597</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-18T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350808#M81598</link>
      <description>&lt;P&gt;I have not started yet. Please write code.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350808#M81598</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-18T12:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350809#M81599</link>
      <description>&lt;P&gt;My hourly fee for doing other people's work is 50 Euros. Can I send you my IBAN?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350809#M81599</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-18T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350811#M81601</link>
      <description>&lt;P&gt;Hi, I'm afraid your question doesn't sound like or request that essentially is a favor and rather that sounds like an order in a open public technical forum which is unfair. Please rephrase with some courtesy and kindess, you are more likely to get any kind of help you need. I am only suggesting, and do not take this personal. Thank you and have a nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350811#M81601</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-04-18T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350815#M81604</link>
      <description>&lt;P&gt;I am really sorry for your thoughts. I just started doing programming in SAS, thats why I posted this question and need a clue to start writing code. I did not know the protocol of this forum. If my question hurts anyone in this forum, I am saying sorry for that, no other intention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350815#M81604</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-18T12:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350821#M81607</link>
      <description>&lt;P&gt;Hints:&lt;/P&gt;
&lt;P&gt;In a &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1kh25to5o0wmvn1o4n4hsl3yyww.htm" target="_blank"&gt;data&lt;/A&gt; step, use a &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm" target="_blank"&gt;do&lt;/A&gt; loop. Set the initial amount before the loop. Calculate the increase in the loop (variable asssignment with simple mathematical formula), and use &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n1lltvbis7ye1an1eryo4leh2mck.htm" target="_blank"&gt;output&lt;/A&gt; to write a record (observation) to the target dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350821#M81607</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-18T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350824#M81608</link>
      <description>&lt;P&gt;If you are new to SAS programming, I would suggest that you take the free online Programming 1 course. It will help develop your skills, and hopefully be able to direct more&amp;nbsp;specific question on these forums in the future.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350824#M81608</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-18T12:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350881#M81625</link>
      <description>&lt;P&gt;Look in the online help for SAS functions such as FINANCE.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/350881#M81625</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-18T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351171#M81716</link>
      <description>&lt;PRE&gt;
If I was right.


data _null_;
year=0.07;
month=0.07/12;

do i=1 to 25;
 year_amount=50000*constant('e')**(year*i);
 put 'year=' i ' year amount=' year_amount;
end;

do i=1 to 25*12;
 month_amount=50000*constant('e')**(month*i);
 put 'month=' i ' month amount=' month_amount;
end;
run; 


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351171#M81716</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-19T07:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351206#M81737</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;while running the below code, I am getting following output.&lt;/P&gt;&lt;P&gt;year_amount=&lt;SPAN&gt;287730.13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;SPAN&gt;month_amount=287730.13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but calculation formula used in the code for year_amount and month_amount is differenet while output is same for both&amp;nbsp;&lt;SPAN&gt;year_amount and&amp;nbsp;month_amount.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351206#M81737</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-19T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351232#M81745</link>
      <description>&lt;PRE&gt;
Can you show us the formula and the output ?


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351232#M81745</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-19T11:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351233#M81746</link>
      <description>&lt;P&gt;I used the code sent by you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351233#M81746</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-19T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351236#M81747</link>
      <description>&lt;PRE&gt;
I mean the formula for compounded interest annually and monthly .



&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351236#M81747</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-19T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351244#M81750</link>
      <description>&lt;PRE&gt;
So you want sparse compound interest ,not continuous compound.



data _null_;
year=0.07;
month=0.07/12;

year_amount=50000;
do i=1 to 25;
 year_amount=year_amount*(1+year);
 put 'year=' i ' year amount=' year_amount;
end;

month_amount=50000;
do i=1 to 25*12;
 month_amount=month_amount*(1+month);
 put 'month=' i ' month amount=' month_amount;
end;
run; 

&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351244#M81750</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-19T12:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351252#M81755</link>
      <description>&lt;P&gt;I want amount compounded annually, compounded monthly also amount accrued at monthly level.please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351252#M81755</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-19T12:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351254#M81756</link>
      <description>&lt;P&gt;is there any document which help me calclaute all these financial term in SAS, where I can refer to.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351254#M81756</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-19T12:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351256#M81757</link>
      <description>&lt;PRE&gt;
Search it at wikipedia.org


https://en.wikipedia.org/wiki/Compound_interest


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351256#M81757</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-19T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351361#M81784</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;PRE&gt;data _null_;
   year=0.07;
   month=0.07/12;
   principal = 50000;
   do i=1 to 25;
      year_amount=compound(principal,.,year,i);
      int = year_amount-principal;
      put 'year=' i ' year amount=' year_amount f14.2 +1  "Accumulated interest=" int f14.2; ;
   end;

   do i=1 to 25*12;
      month_amount=compound(principal,.,month,i);
      int = month_amount-principal;
      put 'month=' i ' month amount=' month_amount f14.2 +1 "Accumulated interest=" int f14.2;
   end;
run; 


&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351361#M81784</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-19T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: write a code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351369#M81785</link>
      <description>&lt;P&gt;ballardw has already given you some good code to get you started above. A lot of what you're looking for can be&amp;nbsp;done through&amp;nbsp;logical calculations using DATA step and DO loop syntax. Some functions may come in handy, as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help with how to use&amp;nbsp;financial&amp;nbsp;functions, or wonder what is available,&amp;nbsp;you can find them &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;by scrolling down to the Finance section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have access to or are interested in any formal SAS training on this topic, the SAS&amp;nbsp;Programming 2 course covers almost exactly this topic in Chapter 7.1 &amp;amp; 7.2.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/write-a-code/m-p/351369#M81785</guid>
      <dc:creator>GinaRepole</dc:creator>
      <dc:date>2017-04-19T16:34:57Z</dc:date>
    </item>
  </channel>
</rss>

