<?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: Subgroup with overlaps in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449292#M283582</link>
    <description>so this is my data where I need assistance with counting number of industries for each observation.&lt;BR /&gt;Acct_no Industry Date&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Telecoms 01OCT2017&lt;BR /&gt;24541463 Micro lenders 01OCT2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 Micro lenders 01OCT2017</description>
    <pubDate>Wed, 28 Mar 2018 12:27:36 GMT</pubDate>
    <dc:creator>NTR</dc:creator>
    <dc:date>2018-03-28T12:27:36Z</dc:date>
    <item>
      <title>Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449239#M283578</link>
      <description>&lt;P&gt;good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May someone please assist me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset where I need to create subgroups, the problem though is that these groups overlap and its one variable that is in use.&lt;/P&gt;&lt;P&gt;example if data is as follows:&lt;/P&gt;&lt;P&gt;Acct number&amp;nbsp;&amp;nbsp;ACC002CRT &amp;nbsp;&amp;nbsp;&amp;nbsp; Industry&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clothing&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cellular&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insurance&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loans&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insurance&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mortgage and bonds&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vehicle&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loans&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the subgroups that need to be created based on the data are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ACC_CRT &amp;gt;=12 then A01;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; 6 &amp;lt;=ACC_CRT &amp;lt;12 then A02;&lt;/P&gt;&lt;P&gt;if ACC_CRT &amp;gt;=9 then C01;&lt;/P&gt;&lt;P&gt;if ACC_CRT =1 then F22;&lt;/P&gt;&lt;P&gt;if ACC_CRT &amp;lt; 6 then B05;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also I need to count the number of industries each account is in.&lt;/P&gt;&lt;P&gt;e.g. 2 or more industries then C10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An assistance to this will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 07:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449239#M283578</guid>
      <dc:creator>NTR</dc:creator>
      <dc:date>2018-03-28T07:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449275#M283579</link>
      <description>&lt;P&gt;You can create Multilabel Formats, this works in some situations, but not others (and you didn't really describe what you do after you create overlapping groups)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1upn25lbfo6mkn1wncu4dyh9q91.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1upn25lbfo6mkn1wncu4dyh9q91.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 11:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449275#M283579</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-28T11:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449279#M283580</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199014"&gt;@NTR&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Based on the data and the rules you've posted: Can you please show us how the desired result should look like?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 11:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449279#M283580</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-28T11:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449290#M283581</link>
      <description>@ Patrick from the sample data provided above, the desired outcome would be....&lt;BR /&gt;for account 1: B05 and 3 or more industries.&lt;BR /&gt;account number 2: F22 and 2 industries.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have managed to categorise the multilabel format.&lt;BR /&gt;&lt;BR /&gt;now I'm struggling with the counting of the industries, if you may please assist.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Mar 2018 12:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449290#M283581</guid>
      <dc:creator>NTR</dc:creator>
      <dc:date>2018-03-28T12:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449292#M283582</link>
      <description>so this is my data where I need assistance with counting number of industries for each observation.&lt;BR /&gt;Acct_no Industry Date&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Telecoms 01OCT2017&lt;BR /&gt;24541463 Micro lenders 01OCT2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Personal loans 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24280800 Clothing 01JUL2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 General retail 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 Micro lenders 01OCT2017</description>
      <pubDate>Wed, 28 Mar 2018 12:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449292#M283582</guid>
      <dc:creator>NTR</dc:creator>
      <dc:date>2018-03-28T12:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449294#M283583</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199014"&gt;@NTR&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;now I'm struggling with the counting of the industries, if you may please assist.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Explain this. What exactly are you doing that isn't working? Show us the SASLOG. Show us (a portion of) the desired outcome as an actual table instead of words.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 12:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449294#M283583</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-28T12:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449313#M283584</link>
      <description>I want to created industry grouping i.e.&lt;BR /&gt;&lt;BR /&gt;if industry in ('General retail', 'Clothing', 'Furniture', 'Home ware') then flag='retail';&lt;BR /&gt;&lt;BR /&gt;if industry= 'Cellular' then flag="Cellular';&lt;BR /&gt;else flag ='other'&lt;BR /&gt;&lt;BR /&gt;after this I want to determine how many industries each record falls into:&lt;BR /&gt;&lt;BR /&gt;the desired outcome would be:&lt;BR /&gt;&lt;BR /&gt;Acc_no industry_count retail_count&lt;BR /&gt;24541463 5 2&lt;BR /&gt;24280800 2 1&lt;BR /&gt;24541463 5 3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this is more clear. I'm a new SAS user&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449313#M283584</guid>
      <dc:creator>NTR</dc:creator>
      <dc:date>2018-03-28T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup with overlaps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449357#M283585</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199014"&gt;@NTR&lt;/a&gt; wrote:&lt;BR /&gt;so this is my data where I need assistance with counting number of industries for each observation.&lt;BR /&gt;Acct_no Industry Date&lt;BR /&gt;24541463 Home ware 01OCT2017&lt;BR /&gt;24541463 Finance houses 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;BR /&gt;24541463 Clothing 01OCT2017&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And where is the ACC_CRT&amp;nbsp;or&amp;nbsp;ACC002CRT&amp;nbsp;variable you referenced in the first post?&lt;/P&gt;
&lt;P&gt;Each "observation" above only&amp;nbsp;has one industry. Do you mean per Acct_no?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Subgroup-with-overlaps/m-p/449357#M283585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-28T14:48:50Z</dc:date>
    </item>
  </channel>
</rss>

