<?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: How to merge excel data together based on variable that contains some matching elements? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478719#M286396</link>
    <description>&lt;P&gt;The New Haven observation on Table 1&amp;nbsp; should match with Portland observation Table 2. The Bainbridge observation on Table 1 should match with Fairfield observation on Table 2. Basically you are matching based on last 3 digits on the ID1/ID2 column.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 16:53:29 GMT</pubDate>
    <dc:creator>Ramsha</dc:creator>
    <dc:date>2018-07-17T16:53:29Z</dc:date>
    <item>
      <title>How to merge excel data together based on variable that contains some matching elements?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478716#M286394</link>
      <description>&lt;P&gt;How would I be able to merge these two data tables together based on the variable ID1 and ID2. As you can see, the 3 right most numbers in the Variables ID1 and ID2 will match. However I do not know how to find a solution that would merge the data sets to each other based off of ID1 and ID2. The solution should have two duplicates of City, State/ZIP, State, and ZIP. Basically I need to put these two data sets together based on the Variable ID1, ID2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478716#M286394</guid>
      <dc:creator>Ramsha</dc:creator>
      <dc:date>2018-07-18T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge excel data together based on variable that contains some matching elements?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478718#M286395</link>
      <description>&lt;P&gt;What is the rule for matching, and which ID1 would therefore be matched with which ID2?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478718#M286395</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-17T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge excel data together based on variable that contains some matching elements?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478719#M286396</link>
      <description>&lt;P&gt;The New Haven observation on Table 1&amp;nbsp; should match with Portland observation Table 2. The Bainbridge observation on Table 1 should match with Fairfield observation on Table 2. Basically you are matching based on last 3 digits on the ID1/ID2 column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478719#M286396</guid>
      <dc:creator>Ramsha</dc:creator>
      <dc:date>2018-07-17T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge excel data together based on variable that contains some matching elements?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478720#M286397</link>
      <description>&lt;P&gt;The SQL approach I showed in your other thread is still correct, just change the values in the SUBSTR to get only the last 3. Probably to substr(var, 4, 3)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181583"&gt;@Ramsha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The New Haven observation on Table 1&amp;nbsp; should match with Portland observation Table 2. The Bainbridge observation on Table 1 should match with Fairfield observation on Table 2. Basically you are matching based on last 3 digits on the ID1/ID2 column.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478720#M286397</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-17T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge excel data together based on variable that contains some matching elements?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478723#M286398</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;scan(id1,2,'-')
scan(id2,2,'-')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to extract the relevant portion.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-excel-data-together-based-on-variable-that-contains/m-p/478723#M286398</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-17T16:59:54Z</dc:date>
    </item>
  </channel>
</rss>

