<?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: Daily returns to Weekly returns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636426#M189081</link>
    <description>Just weekly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;So for 10158 I should get -0.01698. That's (-0.01+1)*(-0.006+1)*(0.006+1)*(-0.009+1)*(0.002+1) - 1&lt;BR /&gt;For 10234 I should get -0.02785. That's (-0.02+)1*(-0.005+1)*(0.001+1)*(-0.007+1)*(0.003+1) - 1</description>
    <pubDate>Wed, 01 Apr 2020 03:28:39 GMT</pubDate>
    <dc:creator>Antoine44</dc:creator>
    <dc:date>2020-04-01T03:28:39Z</dc:date>
    <item>
      <title>Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636424#M189079</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get weekly returns (Monday to Friday) from my daily returns data set, for each week and each company over my sample period. Can anyone help me with that? (see example below of my data set with two companies, just for one week). Hope that's enough, let me know if you need more info. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PERMNO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RET&lt;/P&gt;&lt;P&gt;10158&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.01&lt;/P&gt;&lt;P&gt;10158&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.006&amp;nbsp;&lt;/P&gt;&lt;P&gt;10158&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.006&lt;/P&gt;&lt;P&gt;10158&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/05/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.009&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10158&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02/05/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.002&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.02&lt;/P&gt;&lt;P&gt;10234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.005&amp;nbsp;&lt;/P&gt;&lt;P&gt;10234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30/04/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.001&lt;/P&gt;&lt;P&gt;10234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/05/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.007&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02/05/2014&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.003&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 03:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636424#M189079</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T03:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636425#M189080</link>
      <description>Rolling weekly or just weekly? Assuming you're doing multiplicative accumulation?&lt;BR /&gt;Can you show what you want as your output?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2020 03:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636425#M189080</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-01T03:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636426#M189081</link>
      <description>Just weekly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;So for 10158 I should get -0.01698. That's (-0.01+1)*(-0.006+1)*(0.006+1)*(-0.009+1)*(0.002+1) - 1&lt;BR /&gt;For 10234 I should get -0.02785. That's (-0.02+)1*(-0.005+1)*(0.001+1)*(-0.007+1)*(0.003+1) - 1</description>
      <pubDate>Wed, 01 Apr 2020 03:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636426#M189081</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T03:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636427#M189082</link>
      <description>&lt;P&gt;Like this (Assuming all dates must be used since that's the data provided)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WANT;
  set HAVE;
  by PERMNO notsorted;
  retain CUMUL;
  if first.PERMNO then CUMUL=1+RET;
  else CUMUL=CUMUL*(1+RET);
  if last.PERMNO then  do;
    CUMUL=CUMUL-1; 
    output;
  end;  
  drop DATE RET;
run; 

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="table" style="border-collapse: collapse; border-spacing: 0px; margin-bottom: 1em; border-width: 1px 0px 0px 1px; border-style: solid; border-color: #c1c1c1; border-image: initial; margin-left: auto; margin-right: auto; color: #000000; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fafbfe; text-decoration-style: initial; text-decoration-color: initial;" aria-label="Data Set WORK.WANT"&gt;&lt;CAPTION aria-label="Data Set WORK.WANT"&gt;&amp;nbsp;&lt;/CAPTION&gt;&lt;COLGROUP&gt;&lt;COL style="border-left: 1px solid #c1c1c1; border-right: 0px solid #c1c1c1;" /&gt;&lt;COL style="border-left: 1px solid #c1c1c1; border-right: 0px solid #c1c1c1;" /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TH class="r header" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #edf2f9; border-color: #b0b7bb; border-style: solid; border-width: 0px 1px 1px 0px; color: #112277; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: bold;" scope="col" width="74px"&gt;PERMNO&lt;/TH&gt;
&lt;TH class="r header" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #edf2f9; border-color: #b0b7bb; border-style: solid; border-width: 0px 1px 1px 0px; color: #112277; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: bold;" scope="col" width="76.0333px"&gt;CUMUL&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TD width="74px" class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;10158&lt;/TD&gt;
&lt;TD width="76.0333px" class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal; white-space: nowrap;"&gt;-0.016983&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TD width="74px" class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;10234&lt;/TD&gt;
&lt;TD width="76.0333px" class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal; white-space: nowrap;"&gt;-0.027850&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 03:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636427#M189082</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-01T03:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636430#M189085</link>
      <description>Sorry, that works for my example but I just realised it won't work (I think) for what I actually have. Like this:&lt;BR /&gt;&lt;BR /&gt;PERMNO                    DATE                     RET         Weekly Ret&lt;BR /&gt;&lt;BR /&gt;10158                     28/04/2014               -0.01&lt;BR /&gt;10158                     29/04/2014               -0.006 &lt;BR /&gt;10158                     30/04/2014                0.006&lt;BR /&gt;10158                     01/05/2014               -0.009          &lt;BR /&gt;10158                     02/05/2014                0.002     -0.16983&lt;BR /&gt;10158                     05/05/2014                -0.04&lt;BR /&gt;10158                     06/05/2014                -0.006 &lt;BR /&gt;10158                     07/05/2014                0.002&lt;BR /&gt;10158                     08/05/2014               -0.003          &lt;BR /&gt;10158                     09/05/2014                0.005   -0.04195&lt;BR /&gt;10234                     28/04/2014                -0.02&lt;BR /&gt;10234                     29/04/2014                -0.005 &lt;BR /&gt;10234                     30/04/2014                0.001&lt;BR /&gt;10234                     01/05/2014               -0.007          &lt;BR /&gt;10234                     02/05/2014                0.003   -0.027850&lt;BR /&gt;&lt;BR /&gt;So I've added an extra week for 10158 cause for each company I've got multiple consecutive weeks. Hope that makes sense?</description>
      <pubDate>Wed, 01 Apr 2020 04:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636430#M189085</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T04:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636432#M189087</link>
      <description>&lt;P&gt;Do you want calendar weeks or just 7 days? Does what is a week for one PermNo be the same week for another PERMNO or can they use different days because say they start on different dates? I think you'll need to expand your example data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 04:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636432#M189087</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-01T04:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636437#M189089</link>
      <description>Maybe I can share my data set to show you what I mean. Can I share my dataset or maybe screenshot would do?</description>
      <pubDate>Wed, 01 Apr 2020 05:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636437#M189089</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636440#M189091</link>
      <description>&lt;P&gt;I have attached a text file with one company only. Each week is assigned a number and I just need the weekly returns for each one of them. I have other companies too with returns in the same weeks as the one attached so it needs by week and by permno and by year as well cause you'll find the same number assigned to a&amp;nbsp; week every year. Does this help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 05:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636440#M189091</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T05:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636442#M189093</link>
      <description>&lt;P&gt;Assuming data is sorted by company and date try next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp; 
 set have;
    by premno date;
        retain week_count 0  week_total 0;
        if first.premno then do;  week_count = 0; week_total = 0; end;

        if weekday(date) = 1  /* assuming monday */
            then  do; week_count + 1; week_total = 0; end;
       week_total = week_total + ret; 
run;
data want;
  set temp;
   by premno week_count;
      if   last.wee_count;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 06:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636442#M189093</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-04-01T06:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636443#M189094</link>
      <description>Alright thanks, I'll try that</description>
      <pubDate>Wed, 01 Apr 2020 06:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636443#M189094</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-04-01T06:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636478#M189099</link>
      <description>&lt;P&gt;Just a small modification.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WANT;
  set HAVE;
  by PERMNO notsorted; 
  retain CUMUL;
  if first.PERMNO or weekday(DATE)=2 then CUMUL=1+RET;
  else CUMUL=CUMUL*(1+RET);
  if last.PERMNO or weekday(DATE)=6 then do;
    CUMUL=CUMUL-1; 
    output;
  end;  
  drop RET;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="table" style="border-collapse: collapse; border-spacing: 0px; margin-bottom: 1em; border-width: 1px 0px 0px 1px; border-style: solid; border-color: #c1c1c1; border-image: initial; margin-left: auto; margin-right: auto; color: #000000; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fafbfe; text-decoration-style: initial; text-decoration-color: initial;" aria-label="Data Set WORK.WANT"&gt;&lt;CAPTION aria-label="Data Set WORK.WANT"&gt;&amp;nbsp;&lt;/CAPTION&gt;&lt;COLGROUP&gt;&lt;COL style="border-left: 1px solid #c1c1c1; border-right: 0px solid #c1c1c1;" /&gt;&lt;COL style="border-left: 1px solid #c1c1c1; border-right: 0px solid #c1c1c1;" /&gt;&lt;COL style="border-left: 1px solid #c1c1c1; border-right: 0px solid #c1c1c1;" /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TH class="r header" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #edf2f9; border-color: #b0b7bb; border-style: solid; border-width: 0px 1px 1px 0px; color: #112277; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: bold;" scope="col"&gt;PERMNO&lt;/TH&gt;
&lt;TH class="r header" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #edf2f9; border-color: #b0b7bb; border-style: solid; border-width: 0px 1px 1px 0px; color: #112277; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: bold;" scope="col"&gt;DATE&lt;/TH&gt;
&lt;TH class="r header" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #edf2f9; border-color: #b0b7bb; border-style: solid; border-width: 0px 1px 1px 0px; color: #112277; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: bold;" scope="col"&gt;CUMUL&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;10158&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;19845&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal; white-space: nowrap;"&gt;-0.016983&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;10158&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;19852&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal; white-space: nowrap;"&gt;-0.041954&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-top: 1px solid #c1c1c1; border-bottom: 0px solid #c1c1c1;"&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;10234&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal;"&gt;19845&lt;/TD&gt;
&lt;TD class="r data" style="text-align: right; padding: 3px 6px; vertical-align: top; background-color: #ffffff; border-color: #c1c1c1; border-style: solid; border-width: 0px 1px 1px 0px; font-family: Arial, 'Albany AMT', Helvetica, Helv; font-size: x-small; font-style: normal; font-weight: normal; white-space: nowrap;"&gt;-0.027850&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/636478#M189099</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-01T10:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/666971#M199659</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Thanks for that, that works most of the time. However, I just noticed that it doesn't work when the week starts on weekday 3 (because day 2 would've been a public holiday). &lt;BR /&gt;Any chance you know how to get around that? &lt;BR /&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Jul 2020 02:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/666971#M199659</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-07-05T02:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Daily returns to Weekly returns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/666974#M199661</link>
      <description>Never mind I think I got it working :slightly_smiling_face:&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help!</description>
      <pubDate>Sun, 05 Jul 2020 02:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daily-returns-to-Weekly-returns/m-p/666974#M199661</guid>
      <dc:creator>Antoine44</dc:creator>
      <dc:date>2020-07-05T02:37:00Z</dc:date>
    </item>
  </channel>
</rss>

