<?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: Difference between merging by Proc sql in SAS and merge m:m in Stata in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242852#M45112</link>
    <description>&lt;P&gt;Oops ... missed the part about Stata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how Stata would combine the data sets, but SAS would definitely multiply the number of matches by giving you all combinations as illustrated in my example. &amp;nbsp;Depending on the characteristics of Stata, that might still be the difference between the two results.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 03:09:26 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-01-12T03:09:26Z</dc:date>
    <item>
      <title>Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242836#M45103</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I tried to merge two datasets:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;have1 with two common variables: var11 and var12&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;have2 with two common variables: var21 and var22&lt;/P&gt;
&lt;P&gt;So I used the following code:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as select L.*, R.*&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from have1 as L full outer join have2 as R&lt;/P&gt;
&lt;P&gt;on L.var11=R.var21 and L.var12=R.var22;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I tried to do the same thing in Stata. I change the common variables in both dataset to var1 and var2, and ran the following code:&lt;/P&gt;
&lt;P&gt;use file1&lt;/P&gt;
&lt;P&gt;merge m:m var1 var2 using file2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a conflict in the result of these two approaches. The first code gives me a result with 10M observation, but the output of the second code has only 300K observations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read the manuals but I couldn't figure out what is&amp;nbsp;the reason that I get two different results by using these methods.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate if you could help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 00:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242836#M45103</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2016-01-12T00:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242846#M45110</link>
      <description>&lt;P&gt;The second combination using MERGE doesn't look like a real SAS program, but let's assume that you successfully completed a MERGE. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The number of observations would be different if there are multiple observations in both data sets with the same values for VAR1 and VAR2. &amp;nbsp;SQL gives you all combinations, but MERGE matches observation by observation. &amp;nbsp;Let's take a simpler case where you are just joining by 1 variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR1 &amp;nbsp; &amp;nbsp; tracker1&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR1 &amp;nbsp; &amp;nbsp; tracker2&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were to MERGE these two data sets, you would get observations matched 1 by 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR1 &amp;nbsp; &amp;nbsp; tracker1 &amp;nbsp; &amp;nbsp; tracker2&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would also get a note in the log about more than one data set containing repeated values for the BY variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were to join with SQL, you would get all combinations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR1 &amp;nbsp; &amp;nbsp;tracker1 &amp;nbsp; &amp;nbsp; &amp;nbsp; tracker2&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's just how the tools work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 02:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242846#M45110</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-01-12T02:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242851#M45111</link>
      <description>&lt;P&gt;Thanks for your respond, but as you said it is not a sas code, it's STATA. I want to compare these two commands, the first one in SAS and the second one in STATA.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 02:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242851#M45111</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2016-01-12T02:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242852#M45112</link>
      <description>&lt;P&gt;Oops ... missed the part about Stata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how Stata would combine the data sets, but SAS would definitely multiply the number of matches by giving you all combinations as illustrated in my example. &amp;nbsp;Depending on the characteristics of Stata, that might still be the difference between the two results.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 03:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242852#M45112</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-01-12T03:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242856#M45114</link>
      <description>&lt;P&gt;I don't know the answer, but I have an idea on&amp;nbsp;how I'd find it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generate two small sample data sets, that represent your merge type, in this case many to many.&lt;/P&gt;
&lt;P&gt;Determine what the expected output is.&lt;/P&gt;
&lt;P&gt;Join using both Stata and SAS&lt;/P&gt;
&lt;P&gt;See which is correct&lt;/P&gt;
&lt;P&gt;With a smaller dataset it's more likely you can determine what type &amp;nbsp;of join Stata is using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were trying to google, I would look for how Stata handles the many to many merge. The SAS SQL Full outer join is pretty explicit and common, but what Stata is doing may differ. My 2 minute search, didn't yield anything obvious, but I'm not a Stata&amp;nbsp;user at all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 03:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242856#M45114</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-12T03:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242901#M45126</link>
      <description>&lt;P&gt;According to the STATA documentation of their &lt;FONT face="courier new,courier"&gt;merge&lt;/FONT&gt; statement (&lt;A href="http://www.stata.com/manuals13/dmerge.pdf" target="_blank"&gt;http://www.stata.com/manuals13/dmerge.pdf&lt;/A&gt;), "m:m specifies a many-to-many merge and is a bad idea."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What they describe is exactly what happens in a SAS data step if you merge two datasets by a key with repeats of BY values in both datasets (i.e. one-to-one within the BY group, as pointed out by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;, and repeating the last observation of the shorter BY group, if any).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In contrast, when PROC SQL joins two tables, it always creates a Cartesian product of the two tables (i.e. each row of the first combined with all rows of the second) as the internal "input to the rest of the query" (&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#p1bk7i6jqseje7n1lifcip8kzhpp.htm" target="_blank"&gt;PROC SQL documentation&lt;/A&gt;, section "Joining Tables"). Please see&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;'s example or the example "Full Outer Join" in the linked documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if a BY group in table L has &lt;EM&gt;m&lt;/EM&gt; observations and there is a matching &lt;SPAN&gt;BY group in table R with&amp;nbsp;&lt;EM&gt;n&lt;/EM&gt; observations, the STATA merge of the two tables would result in max(&lt;EM&gt;m&lt;/EM&gt;,&lt;EM&gt;n&lt;/EM&gt;) observations for that BY group, whereas the full outer join of PROC SQL would produce &lt;EM&gt;m&lt;/EM&gt;·&lt;EM&gt;n&lt;/EM&gt; observations. Please note that&amp;nbsp;&lt;EM&gt;m&lt;/EM&gt;&lt;SPAN&gt;·&lt;/SPAN&gt;&lt;EM&gt;n&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/EM&gt;max(&lt;EM&gt;&lt;EM&gt;m&lt;/EM&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;EM&gt;n&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN&gt;) if and only if&amp;nbsp;&lt;EM&gt;m&lt;/EM&gt;&amp;gt;1 and &lt;EM&gt;n&lt;/EM&gt;&amp;gt;1. Moreover, non-matching BY groups would be copied to the output dataset both in the STATA merge and the full outer join. That is, the difference of 10M vs. 300K observations that you observed implies that your datasets L and R have matching "BY groups" with non-unique keys (probably many of them).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Here's what the STATA documentation linked above says about such merges:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"Because m:m merges are such a bad idea, we are not going to show you an example."&lt;/LI&gt;
&lt;LI&gt;"First, if you think you need to perform an m:m merge, then we suspect you are wrong."&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242901#M45126</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-12T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between merging by Proc sql in SAS and merge m:m in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242988#M45139</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;I also did an example and it clearly proved&amp;nbsp;your explanation. Just to document it here, just in case that someone needs it one day.&lt;/P&gt;
&lt;P&gt;If we want to merge these two tables by ID and Weight:&lt;/P&gt;
&lt;P&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight&lt;/P&gt;
&lt;P&gt;Sara &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 110&lt;/P&gt;
&lt;P&gt;Rose &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;110&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight &amp;nbsp; &amp;nbsp; &amp;nbsp; Height&lt;/P&gt;
&lt;P&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS output will be:&lt;/P&gt;
&lt;P&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height&lt;/P&gt;
&lt;P&gt;Sara &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sara &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Rose &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;110&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rose &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The STATA output will be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height&lt;/P&gt;
&lt;P&gt;Sara &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;
&lt;P&gt;Rose &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;110 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 18:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-merging-by-Proc-sql-in-SAS-and-merge-m-m-in/m-p/242988#M45139</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2016-01-12T18:02:56Z</dc:date>
    </item>
  </channel>
</rss>

