<?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: subset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144387#M28809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thaks Stat:&lt;/P&gt;&lt;P&gt;&amp;nbsp; the above table have , I need to join with another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp; the other table has cust_id and flag. and flag has values like M,L,P and blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I would like to get only those values where first record is M and second is a blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The output looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;acct_nbr&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_id&amp;nbsp;&amp;nbsp;&amp;nbsp; pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Abc&amp;nbsp;&amp;nbsp;&amp;nbsp; M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pqr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 14:37:28 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2014-07-31T14:37:28Z</dc:date>
    <item>
      <title>subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144385#M28807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; there are these columns in a table: acct_number cust_id and pin.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; there are millions of records.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; but I would like to select only those which have the following combination:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; acct_nbr&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_id&amp;nbsp;&amp;nbsp;&amp;nbsp; pin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Abc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pqr&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; i.e if a cust_id has different acct_nbr and differt pin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144385#M28807</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2014-07-31T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144386#M28808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from have&lt;/P&gt;&lt;P&gt;group by cust_id&lt;/P&gt;&lt;P&gt;having count(distinct acct_nbr)&amp;gt;1 and count(distinct pin)&amp;gt;1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144386#M28808</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-31T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144387#M28809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thaks Stat:&lt;/P&gt;&lt;P&gt;&amp;nbsp; the above table have , I need to join with another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp; the other table has cust_id and flag. and flag has values like M,L,P and blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I would like to get only those values where first record is M and second is a blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The output looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;acct_nbr&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_id&amp;nbsp;&amp;nbsp;&amp;nbsp; pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Abc&amp;nbsp;&amp;nbsp;&amp;nbsp; M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pqr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144387#M28809</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2014-07-31T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144388#M28810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SASPhile,&lt;/P&gt;&lt;P&gt;Take the second table and find all the ID's with flag M and the ID is in Have to create table 'secondM'.&amp;nbsp; Then go back to the second table and capture all the rows that have an ID in 'secondM' creating table 'secondZ'.&amp;nbsp; All the ID's in 'secondZ' are matched to your criteria. Then join the Have and Second tables where ID's match and ID's are in 'secondZ'. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/144388#M28810</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-08-04T15:42:05Z</dc:date>
    </item>
  </channel>
</rss>

