<?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 sum a particular column in SAS through data step. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427699#M281412</link>
    <description>&lt;P&gt;I prefer a sum statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input age;
datalines;
15
23
63
56
78
45
;

data want;
set have;
sum_of_age+age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jan 2018 14:26:12 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-01-15T14:26:12Z</dc:date>
    <item>
      <title>How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427647#M281410</link>
      <description>&lt;P&gt;How to sum a particular column in SAS.&lt;/P&gt;&lt;P&gt;If I have a data then&amp;nbsp;&lt;/P&gt;&lt;P&gt;age&lt;/P&gt;&lt;P&gt;15&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;63&lt;/P&gt;&lt;P&gt;56&lt;/P&gt;&lt;P&gt;78&lt;/P&gt;&lt;P&gt;45&lt;/P&gt;&lt;P&gt;How can I get the sum of the variable Age in Data&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Step.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427647#M281410</guid>
      <dc:creator>ajay_mishra</dc:creator>
      <dc:date>2018-01-15T11:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427648#M281411</link>
      <description>&lt;PRE&gt;data want;
  set have;
  retain sum_age 0;
  sum_age=sum(sum_age,age);
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427648#M281411</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-15T11:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427699#M281412</link>
      <description>&lt;P&gt;I prefer a sum statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input age;
datalines;
15
23
63
56
78
45
;

data want;
set have;
sum_of_age+age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427699#M281412</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-15T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427701#M281413</link>
      <description>&lt;P&gt;The two methods proposed will result in the running sums for each record, with only the last record reflecting the total sum. Is that what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427701#M281413</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-01-15T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427702#M281414</link>
      <description>&lt;P&gt;Hmm&amp;nbsp; love Art's attention to finer detail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input age;
datalines;
15
23
63
56
78
45
;

data want;
set have end=last;
sum_of_age+age;
if last;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427702#M281414</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-15T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a particular column in SAS through data step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427733#M281415</link>
      <description>&lt;P&gt;Change the MAX from this question to SUM. The idea is the same, you should be able to extend it to your new question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-to-find-the-maximum-value-in-a-variable-through-data-steps/m-p/426177" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/How-to-find-the-maximum-value-in-a-variable-through-data-steps/m-p/426177&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 15:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-sum-a-particular-column-in-SAS-through-data-step/m-p/427733#M281415</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-15T15:51:20Z</dc:date>
    </item>
  </channel>
</rss>

