<?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 calculate totals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373430#M89342</link>
    <description>&lt;P&gt;Yes, You are right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2017 19:54:22 GMT</pubDate>
    <dc:creator>kiranv_</dc:creator>
    <dc:date>2017-07-05T19:54:22Z</dc:date>
    <item>
      <title>How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373406#M89334</link>
      <description>&lt;P&gt;I am looking for salary total. What can I do for that? Please rectify my query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc import datafile="C:\Users\user\Desktop\result of sas\Assignments\EMPLOYEE.csv" out=work.employee dbms=csv replace; &lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data emp; &lt;BR /&gt;FORMAT salary dollar8.; &lt;BR /&gt;set work.employee; &lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10138i3723574C16C3487D/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="c.PNG" title="c.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373406#M89334</guid>
      <dc:creator>vinod4842</dc:creator>
      <dc:date>2017-07-05T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373414#M89337</link>
      <description>&lt;P&gt;There are multiple ways of acquiring the sum of a column in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a couple of ways that could work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Sums;
Set Employee&amp;nbsp;end = last;
Retain Total;
Total&amp;nbsp;+ Salary;
keep Total;
if last;
Run;

Proc SQL;
Select Sum(salary) As Total_Sum
From employee;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373414#M89337</guid>
      <dc:creator>jdwaterman91</dc:creator>
      <dc:date>2017-07-05T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373417#M89338</link>
      <description>57 Proc SQL;&lt;BR /&gt;58 Select Sum(salary) As Total_Sum&lt;BR /&gt;59 From employee;&lt;BR /&gt;ERROR: The SUM summary function requires a numeric argument.&lt;BR /&gt;60 Quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i applied this one but it is not accepted ad showing error</description>
      <pubDate>Wed, 05 Jul 2017 19:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373417#M89338</guid>
      <dc:creator>vinod4842</dc:creator>
      <dc:date>2017-07-05T19:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373427#M89339</link>
      <description>&lt;P&gt;please use proc contents to see whether your column is numeric value or not&amp;nbsp;and also see whether you are using column label instead&amp;nbsp; of column name(I think this is what might be happening).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373427#M89339</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-07-05T19:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373428#M89340</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;please use proc contents to see whether your column is numeric value or not&amp;nbsp;and also see whether you are using column label instead&amp;nbsp; of column name(I think this is what might be happening).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;I think Salary is a character column. You can see that becauses it's aligned right. Numeric columns are aligned left and characters are aligned right, by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373428#M89340</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-05T19:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373430#M89342</link>
      <description>&lt;P&gt;Yes, You are right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-totals/m-p/373430#M89342</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-07-05T19:54:22Z</dc:date>
    </item>
  </channel>
</rss>

