<?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 Overlap of common column in two different datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520563#M141174</link>
    <description>&lt;P&gt;Hi.&amp;nbsp; I have two different datasets named my_data and other_data.&amp;nbsp; Both datasets have an id variable that is 10 char.&amp;nbsp; The first dataset's id variable is named my_id and the later is other_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering what is the best way to query a list of ids that appear in both datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 21:14:10 GMT</pubDate>
    <dc:creator>buechler66</dc:creator>
    <dc:date>2018-12-11T21:14:10Z</dc:date>
    <item>
      <title>Overlap of common column in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520563#M141174</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I have two different datasets named my_data and other_data.&amp;nbsp; Both datasets have an id variable that is 10 char.&amp;nbsp; The first dataset's id variable is named my_id and the later is other_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering what is the best way to query a list of ids that appear in both datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520563#M141174</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2018-12-11T21:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Overlap of common column in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520571#M141180</link>
      <description>&lt;P&gt;SQL handles this pretty well, along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table want as&lt;/P&gt;
&lt;P&gt;select my_id from my_date&lt;/P&gt;
&lt;P&gt;where my_id in (select distinct other_id from other_data);&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520571#M141180</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-12-11T21:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Overlap of common column in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520585#M141188</link>
      <description>Oh, very simple. Thank you for taking the time to help. Much appreciated.</description>
      <pubDate>Tue, 11 Dec 2018 21:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Overlap-of-common-column-in-two-different-datasets/m-p/520585#M141188</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2018-12-11T21:33:49Z</dc:date>
    </item>
  </channel>
</rss>

