<?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 Merge 2 datasets - common rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350854#M81621</link>
    <description>&lt;P&gt;I know how to merge 2 datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please tell me how to merge 2 datasets&amp;nbsp;&lt;STRONG&gt;rows common to both the datasets.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 14:46:29 GMT</pubDate>
    <dc:creator>niladri_routray</dc:creator>
    <dc:date>2017-04-18T14:46:29Z</dc:date>
    <item>
      <title>Merge 2 datasets - common rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350854#M81621</link>
      <description>&lt;P&gt;I know how to merge 2 datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please tell me how to merge 2 datasets&amp;nbsp;&lt;STRONG&gt;rows common to both the datasets.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350854#M81621</guid>
      <dc:creator>niladri_routray</dc:creator>
      <dc:date>2017-04-18T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: merge 2 datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350860#M81622</link>
      <description>&lt;P&gt;We can't understand your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post sample input and output data to illustrate your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Here's the SAS resource on combining datasets and all the different ways.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p19t3r1gxavpoin14jdd23gcheve.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p19t3r1gxavpoin14jdd23gcheve.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350860#M81622</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-18T14:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: merge 2 datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350862#M81623</link>
      <description>&lt;P&gt;Refer to this visual below which shows SQL code, however the same is possible in datastep merge using in= on both datasets:&lt;/P&gt;
&lt;PRE&gt;data want;
  merge have1 (in=a) have2 (in=b);
  by merge_variables;
  if a and b;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8363iC1317C338BF3B03B/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-2-datasets-common-rows/m-p/350862#M81623</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-18T14:01:59Z</dc:date>
    </item>
  </channel>
</rss>

