<?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 Simplifying SAS Selection in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44296#M11708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SUM function will aggregate over the observations for given set of values of the grouping variables.&amp;nbsp; Normally you would want that OUTSIDE the case statement.&amp;nbsp; In this example the case statement will assign a number to each of the observations and then the SUM function will add them up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be situations where you would put the sum function inside the case statement, but this example does not look like one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 17:35:53 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-11-09T17:35:53Z</dc:date>
    <item>
      <title>Simplifying SAS Selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44293#M11705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a selection in SAS Campaign Studio with alot of nodes. The selection was to select people who:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Has not purchased certain products, BUT has purchased more than 3 or more of these certain products in the last 12 months&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there is CASE statement which can be used, but not sure how to apply in SAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44293#M11705</guid>
      <dc:creator>Dhrijan</dc:creator>
      <dc:date>2011-11-09T16:49:38Z</dc:date>
    </item>
    <item>
      <title>Simplifying SAS Selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44294#M11706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have mentioned what I am after is the CASE statement for this so people dont need to have knowledge of SAS Campaign Studio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44294#M11706</guid>
      <dc:creator>Dhrijan</dc:creator>
      <dc:date>2011-11-09T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Simplifying SAS Selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44295#M11707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see example below of the CASE statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sum(case when &amp;lt;&amp;lt;root.product&amp;gt;&amp;gt; in ('VD', 'VN', 'DM','PD','4PR','UN','ID','LT','N','IN') then 1 else 0 end)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between having the 'sum' at the front or not having it at the front?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44295#M11707</guid>
      <dc:creator>Dhrijan</dc:creator>
      <dc:date>2011-11-09T17:26:10Z</dc:date>
    </item>
    <item>
      <title>Simplifying SAS Selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44296#M11708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SUM function will aggregate over the observations for given set of values of the grouping variables.&amp;nbsp; Normally you would want that OUTSIDE the case statement.&amp;nbsp; In this example the case statement will assign a number to each of the observations and then the SUM function will add them up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be situations where you would put the sum function inside the case statement, but this example does not look like one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simplifying-SAS-Selection/m-p/44296#M11708</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-09T17:35:53Z</dc:date>
    </item>
  </channel>
</rss>

