<?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 Month to date total in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Month-to-date-total/m-p/283158#M311458</link>
    <description>I have a data set as follows:&lt;BR /&gt;SaleAmt Date&lt;BR /&gt;10 01JUN2016&lt;BR /&gt;20 02JUN2016&lt;BR /&gt;15 03JUN2016&lt;BR /&gt;&lt;BR /&gt;I want to make create a new column with the month to date total which would look like:&lt;BR /&gt;MonthToDate&lt;BR /&gt;10&lt;BR /&gt;30&lt;BR /&gt;45&lt;BR /&gt;&lt;BR /&gt;I believe I need to use the retain statement but I am totally stumped!&lt;BR /&gt;</description>
    <pubDate>Sat, 09 Jul 2016 17:24:30 GMT</pubDate>
    <dc:creator>Wattsie_100</dc:creator>
    <dc:date>2016-07-09T17:24:30Z</dc:date>
    <item>
      <title>Month to date total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-to-date-total/m-p/283158#M311458</link>
      <description>I have a data set as follows:&lt;BR /&gt;SaleAmt Date&lt;BR /&gt;10 01JUN2016&lt;BR /&gt;20 02JUN2016&lt;BR /&gt;15 03JUN2016&lt;BR /&gt;&lt;BR /&gt;I want to make create a new column with the month to date total which would look like:&lt;BR /&gt;MonthToDate&lt;BR /&gt;10&lt;BR /&gt;30&lt;BR /&gt;45&lt;BR /&gt;&lt;BR /&gt;I believe I need to use the retain statement but I am totally stumped!&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Jul 2016 17:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-to-date-total/m-p/283158#M311458</guid>
      <dc:creator>Wattsie_100</dc:creator>
      <dc:date>2016-07-09T17:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Month to date total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-to-date-total/m-p/283161#M311459</link>
      <description>&lt;P&gt;Yes, you need the RETAIN statement. However, the following also includes an implicit retain.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Running_total + SaleAmt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Jul 2016 17:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-to-date-total/m-p/283161#M311459</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-09T17:46:42Z</dc:date>
    </item>
  </channel>
</rss>

