<?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: find only common records from both he datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351204#M81735</link>
    <description>Hi,&lt;BR /&gt;Use the following snippet.&lt;BR /&gt;&lt;BR /&gt;data final.;&lt;BR /&gt;merge first_data(in=a) second_data(in=b);&lt;BR /&gt;by common_variable1 common_variable2 ;&lt;BR /&gt;if a and b ;&lt;BR /&gt;mi_ind=compress(a||b);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Take a freq of mi_ind. It should only have 11&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Apr 2017 09:16:08 GMT</pubDate>
    <dc:creator>silvergrenade</dc:creator>
    <dc:date>2017-04-19T09:16:08Z</dc:date>
    <item>
      <title>find only common records from both he datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351203#M81734</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help. Can you please tell me using merge statement how to fetch records common to both the datasets.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351203#M81734</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-19T09:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: find only common records from both he datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351204#M81735</link>
      <description>Hi,&lt;BR /&gt;Use the following snippet.&lt;BR /&gt;&lt;BR /&gt;data final.;&lt;BR /&gt;merge first_data(in=a) second_data(in=b);&lt;BR /&gt;by common_variable1 common_variable2 ;&lt;BR /&gt;if a and b ;&lt;BR /&gt;mi_ind=compress(a||b);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Take a freq of mi_ind. It should only have 11&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351204#M81735</guid>
      <dc:creator>silvergrenade</dc:creator>
      <dc:date>2017-04-19T09:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: find only common records from both he datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351209#M81740</link>
      <description>&lt;P&gt;Please use the search functionality of the forum, or look down the posts over the last day. &amp;nbsp;There have been at least five examples of this &lt;STRONG&gt;exact&lt;/STRONG&gt; question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you want to recieve a good answer then follow the guidance which is just below the post button = post example test data in the form of a datastep which illustrates your problem, example of what you want the output to look like, and any other logic, code you may have already have etc. &amp;nbsp;Otherwise we are just guessing.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-only-common-records-from-both-he-datasets/m-p/351209#M81740</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-19T09:42:17Z</dc:date>
    </item>
  </channel>
</rss>

