<?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: How to: Make a new column with summation of a series? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769756#M244101</link>
    <description>I was asking for the actual value so that we can ensure were interpreting the formula correctly, not just result of the summation. For example, is it the same value in all rows or is it cumulative for each row.</description>
    <pubDate>Wed, 22 Sep 2021 23:18:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-09-22T23:18:41Z</dc:date>
    <item>
      <title>How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769741#M244095</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, I need to make a new column with a summation of a few other variables--here's a mathematical expression of the new variable I need to make. VarA and VarB are continuous variables present in other rows. I'm basically trying to make a new column in my dataset with the value given by the following equation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raghavtrip_0-1632349295280.gif" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63957i6B4016A2F63EA0B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raghavtrip_0-1632349295280.gif" alt="raghavtrip_0-1632349295280.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What code can I write to make a new column with the results of this summation, given that I already have an integer value in each row for columns VarA and VarB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I googled this and tried using a "do loop," but it hasn't been working. Here's what I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want(drop=t);&lt;BR /&gt;set have;&lt;BR /&gt;do t=1 to t=VarA;&lt;BR /&gt;sum + (1-VarB/((1.03)**(t-1));&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it clearer, an example of my larger dataset is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a new column with values populated by the summation equation given above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I can provide any additional information and I'm happy to do so, been stuck on this all week!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 22:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769741#M244095</guid>
      <dc:creator>raghavtrip</dc:creator>
      <dc:date>2021-09-22T22:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769749#M244097</link>
      <description>&lt;P&gt;Please show an example of what your input data looks like.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, you can show a small sample with the expected output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data step loops automatically so you don't need to loop at all usually.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 22:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769749#M244097</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T22:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769750#M244098</link>
      <description>&lt;P&gt;Thanks for your response! Here's what my data are formatted like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output would be a data file with a new column given by the summation equation given above. So, in other words, I currently have the data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a new file with the data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&amp;nbsp; &amp;nbsp; SUMMED_VARS&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp;(result of summation)&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&amp;nbsp; &amp;nbsp;(result of summation)&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;(result of summation)&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp;(result of summation)&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;(result of summation)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 22:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769750#M244098</guid>
      <dc:creator>raghavtrip</dc:creator>
      <dc:date>2021-09-22T22:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769756#M244101</link>
      <description>I was asking for the actual value so that we can ensure were interpreting the formula correctly, not just result of the summation. For example, is it the same value in all rows or is it cumulative for each row.</description>
      <pubDate>Wed, 22 Sep 2021 23:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769756#M244101</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T23:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769758#M244103</link>
      <description>&lt;P&gt;1. Assumes you want the same value in each row&lt;/P&gt;
&lt;P&gt;2. Assumes that you do not need to do this for any By groups.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID     VarA     VarB;
cards;
1        7            0.3
2        9            0.4
3        4            0.2
4        12          0.3
5        16          0.2
;;;;
run;



data summary;
set have end=eof;
retain running_total;
term = (1 - varb)/ (1.03 ** (VarA-1));
running_total + term;
if eof then output;
keep running_total;
run;

data want;
set have;
if _n_ =1 then set summary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Sep 2021 23:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769758#M244103</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T23:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769760#M244104</link>
      <description>&lt;P&gt;Thanks for the help! I'm actually hoping to have a different value in each row (cumulative for each row). So let's say the following is my input data:&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data have;
input ID     VarA     VarB;
cards;
1        7            0.3
2        9            0.4
3        4            0.2
4        12          0.3
5        16          0.2
;;;;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want my output data to have a new column with the resultant value in each row being the result of the sum function I had copied above. This would yield the following output (I calculated the results manually):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&amp;nbsp; &amp;nbsp; SUMMED_VARS&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp; 1.0495&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&amp;nbsp; &amp;nbsp;0.89995&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;1.185&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp;1.049&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;1.1999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there's any way to do this? Thanks again in advance for all your help!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 00:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769760#M244104</guid>
      <dc:creator>raghavtrip</dc:creator>
      <dc:date>2021-09-23T00:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769764#M244108</link>
      <description>&lt;P&gt;Thanks for your help! I actually need a unique value in each row--basically, I need a summation calculated for the row and I want a new column with all the summations for each row. In other words, here is the data I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the data I want (a new column with new sums for each row using the equation above):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;VarA&amp;nbsp; &amp;nbsp; &amp;nbsp;VarB&amp;nbsp; &amp;nbsp; SUMMED_VARS&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp;4.492&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4&amp;nbsp; &amp;nbsp;4.811&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;3.062&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp;7.177&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;10.350&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this, effectively running a different summation for each row using VarA and VarB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 00:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769764#M244108</guid>
      <dc:creator>raghavtrip</dc:creator>
      <dc:date>2021-09-23T00:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769849#M244135</link>
      <description>Does your current program work properly for the first row?  If so, you are missing just one key step.  Just before the DO loop, add:&lt;BR /&gt;&lt;BR /&gt;sum = 0;&lt;BR /&gt;&lt;BR /&gt;Otherwise SUM becomes a cumulative total across observations.</description>
      <pubDate>Thu, 23 Sep 2021 09:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769849#M244135</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-09-23T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Make a new column with summation of a series?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769933#M244191</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

running_total = 0;

do i=1 to varA;
	running_total = running_total + (1-varb)/(1.03**(varb-1));
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then your original code was very close.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Make-a-new-column-with-summation-of-a-series/m-p/769933#M244191</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-23T14:34:27Z</dc:date>
    </item>
  </channel>
</rss>

