<?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: Calculating returns using funds dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503749#M134662</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130109"&gt;@chrissowden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;That is the entire instructions that I have.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you are saying that you do not have a funds data set?&lt;/P&gt;
&lt;P&gt;I asked for a description of the input data set. If you do not have such a data set then I don't think there is anyway anyone could answer this question.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 15:02:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-10-12T15:02:45Z</dc:date>
    <item>
      <title>Calculating returns using funds dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503593#M134602</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23967iE09037B93BDA22F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Where the endpoint is December 2006—e.g. 3 month return refers to return over Oct, Nov &amp;amp; Dec of 2006; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;3 year return refers to Jan 2004 through December 2006&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I am having a hard time getting the monthly and yearly returns&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;here is my code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc sort data=mysas.funds out=funds;&lt;BR /&gt;&amp;nbsp;by indicecode&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;where year(dt) &amp;lt;= 2006;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;data ex1;&lt;BR /&gt;&amp;nbsp;set funds end=last;&lt;BR /&gt;&amp;nbsp;by indicecode ;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; if last.indicecode then do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;count=_n_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;col1=(fund_tot + return)*100;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp;end;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;/*&amp;nbsp; keep indicecode mean return count; */&lt;BR /&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Oct 2018 22:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503593#M134602</guid>
      <dc:creator>chrissowden</dc:creator>
      <dc:date>2018-10-11T22:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating returns using funds dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503595#M134603</link>
      <description>&lt;P&gt;I think that you need&amp;nbsp; some description of the input data set FUNDS if the purpose is to create output similar to the posted picture.&lt;/P&gt;
&lt;P&gt;Note that such a picture does not actually provide variable names or even data types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best would be to provide some example data from your FUNDS or possibly the MYSAS.FUNDS data set in the form of data step code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you should provide descriptions of the time frames for the 6 month, 1 year and 2 year results if desired. Otherwise we are extremely like to make an assumption that does not match your time frame.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 23:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503595#M134603</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-11T23:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating returns using funds dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503597#M134604</link>
      <description>That is the entire instructions that I have.</description>
      <pubDate>Thu, 11 Oct 2018 23:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503597#M134604</guid>
      <dc:creator>chrissowden</dc:creator>
      <dc:date>2018-10-11T23:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating returns using funds dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503749#M134662</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130109"&gt;@chrissowden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;That is the entire instructions that I have.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you are saying that you do not have a funds data set?&lt;/P&gt;
&lt;P&gt;I asked for a description of the input data set. If you do not have such a data set then I don't think there is anyway anyone could answer this question.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 15:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-returns-using-funds-dataset/m-p/503749#M134662</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-12T15:02:45Z</dc:date>
    </item>
  </channel>
</rss>

