<?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 How many matches done after a left join? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-many-matches-done-after-a-left-join/m-p/914391#M360312</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset a and I am left joining b on some keys a.x=b.x and a.y=b.y.&lt;/P&gt;&lt;P&gt;I want SAS to display how many matches happened. Right now it just gives the final number of rows in the final dataset.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 19:47:36 GMT</pubDate>
    <dc:creator>noshir_irani</dc:creator>
    <dc:date>2024-02-03T19:47:36Z</dc:date>
    <item>
      <title>How many matches done after a left join?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-many-matches-done-after-a-left-join/m-p/914391#M360312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset a and I am left joining b on some keys a.x=b.x and a.y=b.y.&lt;/P&gt;&lt;P&gt;I want SAS to display how many matches happened. Right now it just gives the final number of rows in the final dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 19:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-many-matches-done-after-a-left-join/m-p/914391#M360312</guid>
      <dc:creator>noshir_irani</dc:creator>
      <dc:date>2024-02-03T19:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How many matches done after a left join?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-many-matches-done-after-a-left-join/m-p/914396#M360316</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select
  a.*,
  case
    when a.x = b.x and a.y = b.y
    then 1
    else 0
  end as match
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When no match is found, at least one of the b key variables will be missing.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 20:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-many-matches-done-after-a-left-join/m-p/914396#M360316</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-02-03T20:24:55Z</dc:date>
    </item>
  </channel>
</rss>

