<?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: Look Up in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Look-Up/m-p/23264#M3844</link>
    <description>This type of data validation topic has been discussed previously - check the various forums archives.  But basically you really need to have some "key variable" to uniquely identify a subject, given that there may be multiple John Smith individuals and what if, by chance, you have some who changes their name, maybe "Michael Smith" becomes "Michel Smith".  This condition happens - really it does.&lt;BR /&gt;
&lt;BR /&gt;
What you are proposing is somewhat unreasonable, regardless of the power in SAS for data manipulation and interpretation.&lt;BR /&gt;
&lt;BR /&gt;
One option though is to come up with a "tag" identification column/variable which is derived from possibly the Last_Name and First_Name components, compressing out blanks, in order to build a comparison "key" for new, incoming data.  &lt;BR /&gt;
&lt;BR /&gt;
The COMPRESS function comes to mind, to be used with a data-scrubbing process when your incoming data is parsed and interpreted for the first time.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 24 Apr 2009 13:46:56 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-24T13:46:56Z</dc:date>
    <item>
      <title>Look Up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Look-Up/m-p/23263#M3843</link>
      <description>Hi ,&lt;BR /&gt;
   The prescribers data has physician's field where the physicians names prescribing the drug are present. We get this data in excel.At times a physician's name is given in a different way than usual.for example, John Smith is same as J Smith or James Hanna is given as James Hanna,MD.&lt;BR /&gt;
&lt;BR /&gt;
In excel on a new work sheet , I have two columns old and new, old is John Smith and new is J Smith.&lt;BR /&gt;
&lt;BR /&gt;
Now When I convert excel data to SAS, I would like to do a look up on the old physicians names and if there is mis match , I would like to update them with the old ones.If there is a new physician's name present for the current data, i would like to have him included in my data.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your time.&lt;BR /&gt;
SASPhile,</description>
      <pubDate>Fri, 24 Apr 2009 13:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Look-Up/m-p/23263#M3843</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-04-24T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Look Up</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Look-Up/m-p/23264#M3844</link>
      <description>This type of data validation topic has been discussed previously - check the various forums archives.  But basically you really need to have some "key variable" to uniquely identify a subject, given that there may be multiple John Smith individuals and what if, by chance, you have some who changes their name, maybe "Michael Smith" becomes "Michel Smith".  This condition happens - really it does.&lt;BR /&gt;
&lt;BR /&gt;
What you are proposing is somewhat unreasonable, regardless of the power in SAS for data manipulation and interpretation.&lt;BR /&gt;
&lt;BR /&gt;
One option though is to come up with a "tag" identification column/variable which is derived from possibly the Last_Name and First_Name components, compressing out blanks, in order to build a comparison "key" for new, incoming data.  &lt;BR /&gt;
&lt;BR /&gt;
The COMPRESS function comes to mind, to be used with a data-scrubbing process when your incoming data is parsed and interpreted for the first time.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 24 Apr 2009 13:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Look-Up/m-p/23264#M3844</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-24T13:46:56Z</dc:date>
    </item>
  </channel>
</rss>

