<?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: compare a variable with the list and return the matching value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768998#M243938</link>
    <description>&lt;P&gt;thanks for quick response. the github link you sent seem to work to identify a matching value and return the flag=1. i would like to get the matching value returned to replace the missing value for industry column. how do i get the matching value from the array list ?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 03:52:48 GMT</pubDate>
    <dc:creator>scorpionhks</dc:creator>
    <dc:date>2021-09-22T03:52:48Z</dc:date>
    <item>
      <title>compare a variable with the list and return the matching value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768992#M243934</link>
      <description>&lt;P&gt;for missing values in industry variable, I am looking to compare email_id which is partially anonymized (name is anonymized but industry remain same)&amp;nbsp;with the list of distinct values of industry column &amp;nbsp;to derive the industry name from email address and return the matching value for missing records. for example: in row 6, email id is&amp;nbsp;&lt;A href="mailto:GGYDNEE3@homeandgardenBAHG.co," target="_blank" rel="noopener"&gt;GGYDNEE3@homeandgardenBAHG.co,&lt;/A&gt;&amp;nbsp;i want to compare it with all distinct values of industry column (in this case matching value would be home and garden) and return that value for missing value in industry column, similarly row 15 should get 'nursery' and row 20 should get 'landscape designer' for missing values in industry column. what is the logic to use here ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scorpionhks_0-1632279410530.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63842i4B01B00E85E68FC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scorpionhks_0-1632279410530.png" alt="scorpionhks_0-1632279410530.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 03:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768992#M243934</guid>
      <dc:creator>scorpionhks</dc:creator>
      <dc:date>2021-09-22T03:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: compare a variable with the list and return the matching value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768996#M243937</link>
      <description>If you treat your industry as the terms you're searching for, perhaps this may help. &lt;BR /&gt;&lt;A href="https://gist.github.com/statgeek/2f733d27820f43fa37d6ba92c30f22cf" target="_blank"&gt;https://gist.github.com/statgeek/2f733d27820f43fa37d6ba92c30f22cf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You may want to use a more fuzzy matching approach though...see this post for some ideas. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2021/09/21/fuzzy-matching/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2021/09/21/fuzzy-matching/&lt;/A&gt;</description>
      <pubDate>Wed, 22 Sep 2021 03:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768996#M243937</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T03:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: compare a variable with the list and return the matching value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768998#M243938</link>
      <description>&lt;P&gt;thanks for quick response. the github link you sent seem to work to identify a matching value and return the flag=1. i would like to get the matching value returned to replace the missing value for industry column. how do i get the matching value from the array list ?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 03:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/768998#M243938</guid>
      <dc:creator>scorpionhks</dc:creator>
      <dc:date>2021-09-22T03:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: compare a variable with the list and return the matching value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/769179#M244023</link>
      <description>if find(team, _search(i), 'it')&amp;gt;0 then flag=search(i);</description>
      <pubDate>Wed, 22 Sep 2021 14:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-a-variable-with-the-list-and-return-the-matching-value/m-p/769179#M244023</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T14:34:15Z</dc:date>
    </item>
  </channel>
</rss>

