<?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 Identify different grades for a customer in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478278#M286330</link>
    <description>&lt;P&gt;i am trying to identify if a customer id has different risk grades per facility. i am completely stumped as to how to do it.as an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following (customer 1) is what I am trying to identify from a dataset:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp; &amp;nbsp;Facility&amp;nbsp; &amp;nbsp;Grade&lt;/P&gt;&lt;P&gt;customer 1&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 1&amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how i can segment them?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 04:49:22 GMT</pubDate>
    <dc:creator>eemrun</dc:creator>
    <dc:date>2018-07-16T04:49:22Z</dc:date>
    <item>
      <title>Identify different grades for a customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478278#M286330</link>
      <description>&lt;P&gt;i am trying to identify if a customer id has different risk grades per facility. i am completely stumped as to how to do it.as an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following (customer 1) is what I am trying to identify from a dataset:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp; &amp;nbsp;Facility&amp;nbsp; &amp;nbsp;Grade&lt;/P&gt;&lt;P&gt;customer 1&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 1&amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;customer 2&amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how i can segment them?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 04:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478278#M286330</guid>
      <dc:creator>eemrun</dc:creator>
      <dc:date>2018-07-16T04:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Identify different grades for a customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478280#M286331</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input  customer :$15.  Facility   Grade $;
cards;
customer1  1          A
customer1  2          B
customer2  1          A
customer2   2        A
customer2   3       A
; 

proc sql;
create table want as
select * 
from have
group by customer
having count(distinct grade)&amp;gt;1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478280#M286331</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-16T05:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Identify different grades for a customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478281#M286332</link>
      <description>&lt;P&gt;Or perhaps you just wanna have flag variable as indicator in the form of 1's and 0s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select *,count(distinct grade)&amp;gt;1 as flag
from have
group by customer;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-different-grades-for-a-customer/m-p/478281#M286332</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-16T05:31:46Z</dc:date>
    </item>
  </channel>
</rss>

