<?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 2 datasets with a left join on two charachter strings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852120#M336846</link>
    <description>&lt;P&gt;Thank you very much it works really precisely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 14:16:53 GMT</pubDate>
    <dc:creator>raigner</dc:creator>
    <dc:date>2023-01-04T14:16:53Z</dc:date>
    <item>
      <title>How to merge 2 datasets with a left join on two charachter strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852094#M336833</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;i hope someone can help me:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two datasets that I would like to connect to each other.&lt;BR /&gt;In dataset A there are AEs listed and in the variable AECMNO the corresponding CMs (2, 3, 26, 27, 28, 29, 30, 31, 32,33,34).&lt;BR /&gt;In dataset B, these CMs should be found in the variable CMSPID.&lt;BR /&gt;I have tried the following statement. unfortunately a: not all hits are listed and b. 1 wrong hit is listed.&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table AE_CM&lt;BR /&gt;as select * from test_AE as A left join cm as B on A.SubjectId=B.SubjectId where (AECMNO contains CMSPID);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raigner_1-1672823816400.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79026i56072311B9452DA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raigner_1-1672823816400.png" alt="raigner_1-1672823816400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raigner_2-1672823872636.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79027i884AE30E75B0D64D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raigner_2-1672823872636.png" alt="raigner_2-1672823872636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 09:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852094#M336833</guid>
      <dc:creator>raigner</dc:creator>
      <dc:date>2023-01-04T09:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge 2 datasets with a left join on two charachter strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852106#M336839</link>
      <description>Could try this one :&lt;BR /&gt;&lt;BR /&gt;from test_AE as A left join cm as B on A.SubjectId=B.SubjectId and findw(AECMNO,strip(CMSPID),' ,');</description>
      <pubDate>Wed, 04 Jan 2023 12:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852106#M336839</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-04T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge 2 datasets with a left join on two charachter strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852120#M336846</link>
      <description>&lt;P&gt;Thank you very much it works really precisely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-2-datasets-with-a-left-join-on-two-charachter/m-p/852120#M336846</guid>
      <dc:creator>raigner</dc:creator>
      <dc:date>2023-01-04T14:16:53Z</dc:date>
    </item>
  </channel>
</rss>

