<?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: Proc SQL, Tough one: Merge 2 datasets, many to many Match Merge in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57450#M16014</link>
    <description>That's exactly what i mean.  Though i ended up concatenating the variables to form one variable.</description>
    <pubDate>Wed, 27 Apr 2011 17:51:08 GMT</pubDate>
    <dc:creator>CharlesR</dc:creator>
    <dc:date>2011-04-27T17:51:08Z</dc:date>
    <item>
      <title>Proc SQL, Tough one: Merge 2 datasets, many to many Match Merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57448#M16012</link>
      <description>Ok, so the previous thread i started, i don't think can be accomplished as stated.  But i think this will work:&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to do a many-to-many match merge, but i have a problem: rather than having 1 variable = 1 variable, i have 5 variables to merge "by". I don't think i can do this in SAS, but it would also work to have the 5 variables compound to one variable showing each of the permutations of the 5, then doing the merge by the new single variable.  I could then do the merge using Proc SQL with: one variable showing the permutations = one variable showing the permutations.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone show me how to do this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 27 Apr 2011 05:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57448#M16012</guid>
      <dc:creator>CharlesR</dc:creator>
      <dc:date>2011-04-27T05:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL, Tough one: Merge 2 datasets, many to many Match Merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57449#M16013</link>
      <description>do you mean something like this?&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
select * from tab1 t1 outer join tab2 t2 on t1.var1=t2.var1 and t1.var2=t2.var2 and t1.var3=t2.var3 and t1.var4=t2.var4 and t1.var5=t2.var5;&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 27 Apr 2011 11:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57449#M16013</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-04-27T11:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL, Tough one: Merge 2 datasets, many to many Match Merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57450#M16014</link>
      <description>That's exactly what i mean.  Though i ended up concatenating the variables to form one variable.</description>
      <pubDate>Wed, 27 Apr 2011 17:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-Tough-one-Merge-2-datasets-many-to-many-Match-Merge/m-p/57450#M16014</guid>
      <dc:creator>CharlesR</dc:creator>
      <dc:date>2011-04-27T17:51:08Z</dc:date>
    </item>
  </channel>
</rss>

