<?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: Filtering out all client information based on a large list of client in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762368#M241374</link>
    <description>&lt;P&gt;Hi Thanks for the quick reply. I want to keep the repeats. I want all the information for client from Table B (The one with multiple entries of client name) based on which clients are mentioned in Table A (The table with single entries of client names)&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 19:43:59 GMT</pubDate>
    <dc:creator>themanwith2thum</dc:creator>
    <dc:date>2021-08-18T19:43:59Z</dc:date>
    <item>
      <title>Filtering out all client information based on a large list of client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762365#M241372</link>
      <description>&lt;P&gt;Hello I have one table (Table A) which has info about our clients. Their names, ID's, products owned, address etc etc. Most clients will have multiple entries since they own multiple products. I need to extract information for 50 or so clients from that list, these required clients name are present in a different table (Table B). If I try using an if statement that would take forever to write down all 50 clients name plus leaves room for a lot of error. I was wondering if there is a faster way to do this. I considered doing a left join but not sure if this would work since Table A would have multiple entries under the clients name and the name repeated many times while Table B would not have any repeats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 19:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762365#M241372</guid>
      <dc:creator>themanwith2thum</dc:creator>
      <dc:date>2021-08-18T19:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out all client information based on a large list of client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762366#M241373</link>
      <description>proc sql;&lt;BR /&gt;create table want as &lt;BR /&gt;select * &lt;BR /&gt;from tableA&lt;BR /&gt;where clientname in (Select client_name from tableB);&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;What do you want to do about the repeats? A left join will get you ALL the repeats, if you had multiples in each this actually wouldn't work. You can then use a data step to reduce this using first/last but there are typically other rules you can use to filter - ie pick most recent updated.</description>
      <pubDate>Wed, 18 Aug 2021 19:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762366#M241373</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-18T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out all client information based on a large list of client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762368#M241374</link>
      <description>&lt;P&gt;Hi Thanks for the quick reply. I want to keep the repeats. I want all the information for client from Table B (The one with multiple entries of client name) based on which clients are mentioned in Table A (The table with single entries of client names)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 19:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762368#M241374</guid>
      <dc:creator>themanwith2thum</dc:creator>
      <dc:date>2021-08-18T19:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out all client information based on a large list of client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762371#M241377</link>
      <description>Then either a left/right join (depending on how you specify the tables) a data step merge with IN or the solution I initially posted works. &lt;BR /&gt;Please try them and let us know if you have any issues.</description>
      <pubDate>Wed, 18 Aug 2021 19:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762371#M241377</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-18T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out all client information based on a large list of client</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762373#M241378</link>
      <description>&lt;P&gt;Use a hash object:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set a;
if _n_ = 1
then do;
  declare hash b (dataset:"b");
  b.definekey("id");
  b.definedone();
end;
if b.find() = 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 20:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-out-all-client-information-based-on-a-large-list-of/m-p/762373#M241378</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-18T20:10:19Z</dc:date>
    </item>
  </channel>
</rss>

