<?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: Two people with the same names (Last name, first name, and middle initials) after concatenation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805115#M317105</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s suggestion is good for the current situation, assuming no department currently has two people with the same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But people change departments - and much less frequently they change names.&amp;nbsp; Either the identifier will remain fixed, but lose informational value (so why use name &amp;amp; dept to begin with?)&amp;nbsp; &amp;nbsp;-&amp;nbsp; or it will be modified to follow the employee's changes, requiring a table of links between old and new identifiers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There will be blood.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sounds like you may have bitten by the same things that I have. Including the "new database implementation will use new identifiers" headache.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 17:23:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-03-30T17:23:54Z</dc:date>
    <item>
      <title>Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804931#M317022</link>
      <description>&lt;DIV class=""&gt;Please, I need your help to solve a problem I had after I concatenated "Lastname, first name, and middle name. I want the characters to look like this, e.g., Johnson, Smart B. However, I was successful doing that, but I have two different people in different departments with the names (e.g., Smith, Johnson L maybe in English dept and another person bearing the same Smith, Johnson L in French Dept). Please, how can I solve this problem before joining the data set? How do I remove the initial from one of the names to make the concatenation or names unique by person?&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;Show less&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Mar 2022 02:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804931#M317022</guid>
      <dc:creator>Josh12</dc:creator>
      <dc:date>2022-03-30T02:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804939#M317026</link>
      <description>&lt;P&gt;You need a way to determine whether a tentative new name has already been established for another person.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the code (as a complete data step, or complete proc sql)&amp;nbsp; that you are currently using - &lt;STRONG&gt;USING THE&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mkeintz_1-1648610790076.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69945iE742042939CC4B6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mkeintz_1-1648610790076.png" alt="mkeintz_1-1648610790076.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mkeintz_2-1648610870933.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69946iB1AE018945C2AF57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mkeintz_2-1648610870933.png" alt="mkeintz_2-1648610870933.png" /&gt;&lt;/span&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ICONS&lt;/STRONG&gt;.&amp;nbsp; That is essential to developing code to detect duplicates.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804939#M317026</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-03-30T03:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804941#M317028</link>
      <description>&lt;P&gt;Don't bother making the NAME unique.&amp;nbsp; Create an ID variable that is unique.&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  id+1;
  new_name = catx(', ',last_name,catx(' ',first_name,middle_initial));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use their ID when combining the names with other data you have about them.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804941#M317028</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-30T03:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804942#M317029</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; emp1; set emp;&lt;/P&gt;&lt;P&gt;length name $70.;&lt;/P&gt;&lt;P&gt;middle_name2=substr(middle_name,&lt;STRONG&gt;1&lt;/STRONG&gt;,&lt;STRONG&gt;1&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;name_MI=trim(last_name)||", "||trim(first_name)||" "||trim(middle_name2);&lt;/P&gt;&lt;P&gt;first_name_i=scan(first_name,&lt;STRONG&gt;1&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;name=trim(last_name)||", "||trim(first_name_i);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a base data that was set up already as (Lastname, Firstname middle initial like Smart, Johnson L).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804942#M317029</guid>
      <dc:creator>Josh12</dc:creator>
      <dc:date>2022-03-30T03:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804943#M317030</link>
      <description>For the unique identifier, don't use NAME.  use NAME plus DEPT.</description>
      <pubDate>Wed, 30 Mar 2022 03:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/804943#M317030</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-03-30T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805081#M317089</link>
      <description>And depending on your data you may need to actually investigate that the name is not actually the same person. People change positions within organizations, sometimes frequently. If you data does not represent a single point in time, i.e. only 15 Mar 2022, but some interval then that person might occur as part of two different organizations.&lt;BR /&gt;Which is why a very large number of organizations use an Employee, or from your context, Student identifier instead of names.</description>
      <pubDate>Wed, 30 Mar 2022 14:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805081#M317089</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-30T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805086#M317094</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s suggestion is good for the current situation, assuming no department currently has two people with the same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But people change departments - and much less frequently they change names.&amp;nbsp; Either the identifier will remain fixed, but lose informational value (so why use name &amp;amp; dept to begin with?)&amp;nbsp; &amp;nbsp;-&amp;nbsp; or it will be modified to follow the employee's changes, requiring a table of links between old and new identifiers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There will be blood.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 15:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805086#M317094</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-03-30T15:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two people with the same names (Last name, first name, and middle initials) after concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805115#M317105</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s suggestion is good for the current situation, assuming no department currently has two people with the same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But people change departments - and much less frequently they change names.&amp;nbsp; Either the identifier will remain fixed, but lose informational value (so why use name &amp;amp; dept to begin with?)&amp;nbsp; &amp;nbsp;-&amp;nbsp; or it will be modified to follow the employee's changes, requiring a table of links between old and new identifiers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There will be blood.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sounds like you may have bitten by the same things that I have. Including the "new database implementation will use new identifiers" headache.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 17:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-people-with-the-same-names-Last-name-first-name-and-middle/m-p/805115#M317105</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-30T17:23:54Z</dc:date>
    </item>
  </channel>
</rss>

