<?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 Do I Sum a column that is a calculated by two other columns in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313807#M21165</link>
    <description>Thank You Very Much</description>
    <pubDate>Wed, 23 Nov 2016 15:15:46 GMT</pubDate>
    <dc:creator>Kelvin156</dc:creator>
    <dc:date>2016-11-23T15:15:46Z</dc:date>
    <item>
      <title>How Do I Sum a column that is a calculated by two other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313795#M21163</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible during the proc sql code below to add another column which would be 'Total' (Bal1+BAl2+BAl3)-(Bal4+Bal5+Bal6+BAl6)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or to do it as a seperate data step after the output of the following code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to &amp;amp;ABCD as ABC(ACCDE);&lt;BR /&gt;create table TestBal as&lt;BR /&gt;select *&lt;BR /&gt;from connection to ABC&lt;BR /&gt;(&lt;BR /&gt;select&lt;BR /&gt;AccountNum as Accno,&lt;BR /&gt;Bal1,&lt;BR /&gt;Bal2,&lt;BR /&gt;Bal3,&lt;BR /&gt;Bal4,&lt;BR /&gt;Bal5,&lt;BR /&gt;Bal6,&lt;BR /&gt;Bal7,&lt;BR /&gt;Load_Date&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from Table.Dataset&lt;/P&gt;&lt;P&gt;order by Accno&lt;/P&gt;&lt;P&gt;);&lt;BR /&gt;disconnect from ABC;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313795#M21163</guid>
      <dc:creator>Kelvin156</dc:creator>
      <dc:date>2016-11-23T14:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Sum a column that is a calculated by two other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313800#M21164</link>
      <description>&lt;PRE&gt;select
AccountNum as Accno,
Bal1,
Bal2,
Bal3,
Bal4,
Bal5,
Bal6,
Bal7,
Load_Date,
(Bal1+BAl2+BAl3)-(Bal4+Bal5+Bal6+BAl6) as Total&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313800#M21164</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-23T14:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Sum a column that is a calculated by two other columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313807#M21165</link>
      <description>Thank You Very Much</description>
      <pubDate>Wed, 23 Nov 2016 15:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-Do-I-Sum-a-column-that-is-a-calculated-by-two-other-columns/m-p/313807#M21165</guid>
      <dc:creator>Kelvin156</dc:creator>
      <dc:date>2016-11-23T15:15:46Z</dc:date>
    </item>
  </channel>
</rss>

