<?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 SUM CASE Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SUM-CASE-Statement/m-p/440617#M110111</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write a case sum statement please? I have tried to write one but not 100% sure of the syntax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table R.TESTING_SUM as&lt;BR /&gt;select&lt;BR /&gt;date,&lt;BR /&gt;sum&lt;BR /&gt;(case when 'F1S','F2S','F3S','F4S','F5S','F6S') as FS_NEW,&lt;BR /&gt;sum&lt;BR /&gt;(case when 'F1V','F2V','F3V','F4V','F5V','F6V') as FS_NEW,&lt;BR /&gt;from test.testing;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 18:19:21 GMT</pubDate>
    <dc:creator>KC_16</dc:creator>
    <dc:date>2018-02-27T18:19:21Z</dc:date>
    <item>
      <title>SUM CASE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUM-CASE-Statement/m-p/440617#M110111</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write a case sum statement please? I have tried to write one but not 100% sure of the syntax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table R.TESTING_SUM as&lt;BR /&gt;select&lt;BR /&gt;date,&lt;BR /&gt;sum&lt;BR /&gt;(case when 'F1S','F2S','F3S','F4S','F5S','F6S') as FS_NEW,&lt;BR /&gt;sum&lt;BR /&gt;(case when 'F1V','F2V','F3V','F4V','F5V','F6V') as FS_NEW,&lt;BR /&gt;from test.testing;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUM-CASE-Statement/m-p/440617#M110111</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2018-02-27T18:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: SUM CASE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUM-CASE-Statement/m-p/440620#M110112</link>
      <description>This is wrong(SQL Syntax Error) and the code does not make any sense.&lt;BR /&gt;Please post your requirement and data clearly.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUM-CASE-Statement/m-p/440620#M110112</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-27T18:24:34Z</dc:date>
    </item>
  </channel>
</rss>

