<?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: Repair the data : Mapping the latest data into old data. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279957#M56502</link>
    <description>&lt;P&gt;So what your saying is you have the data below, and from somwhere else you have the correct data:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Jonathan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andrew &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital, INC&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So why not just drop those variables from the data below, and merge the correct data item back on?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 12:29:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-06-24T12:29:27Z</dc:date>
    <item>
      <title>Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279934#M56491</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a test data file. I need to map the latest infromation to old data. I have millions of data and which have different level of duplicates in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have code which can help me in this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Parveen&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 09:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279934#M56491</guid>
      <dc:creator>Lohia</dc:creator>
      <dc:date>2016-06-24T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279935#M56492</link>
      <description>&lt;P&gt;Yes, SAS code can help. &amp;nbsp;However you have provided exactly no information on what software you are using, what systems, what the process of "updating" will be, what to do with duplicates, missing, no test data (in the form of a datastep) or required output. &amp;nbsp;The only thing I can suggest is looking at that preview, you may be able to update the main dataset with the changes dataset using the update datastep command, which you can find here:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202975.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202975.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 09:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279935#M56492</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-24T09:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279939#M56494</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS 9.4 and also have SAS EG . Solution you suggested me is very basic one and sorry i did not expained the problem in brief way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have insurance data , which contain different level of duplicates like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a person having unique NPI(national provider identification number) , but this person have multiple records in our database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the time of recording the data in table , person updated with different level of naming like&lt;/P&gt;&lt;P&gt;NPI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;First_Name &amp;nbsp;Last&lt;SPAN&gt;_Name &amp;nbsp; &amp;nbsp;Middle_Name &amp;nbsp;State &amp;nbsp; &amp;nbsp; Address&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;123456789 &amp;nbsp; &amp;nbsp;Andrew &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jonatha &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital INC&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &lt;SPAN&gt;Jonathan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andrew &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital, INC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &amp;nbsp;Andrew &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CA &amp;nbsp; &amp;nbsp; Mark Hospital CA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &amp;nbsp;Andrew R &amp;nbsp; &amp;nbsp; &amp;nbsp; Jonathan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark INC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &amp;nbsp;Andrew &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jona &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &amp;nbsp;Andrew &amp;nbsp;J &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital INC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see 6 rows are there , one is unique here and i need to repair this record uning right information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thats why we are taking help of original data present at national NPI . using this we need to map a right record and then we will remove the duplicates uning NPI+FN+LN+ST+Address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you still need more clarifucation please let me know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Parveen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 10:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279939#M56494</guid>
      <dc:creator>Lohia</dc:creator>
      <dc:date>2016-06-24T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279957#M56502</link>
      <description>&lt;P&gt;So what your saying is you have the data below, and from somwhere else you have the correct data:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;123456789 &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Jonathan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Andrew &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CA &amp;nbsp; &amp;nbsp; Mark Hospital, INC&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So why not just drop those variables from the data below, and merge the correct data item back on?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/279957#M56502</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-24T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280127#M56561</link>
      <description>&lt;PRE&gt;
Simple MERGE statement + PROC SORT can do that;

data want;
 merge old_data lastest_data;
 by NPI;
run;

proc sort nodupkey ;by NPI ;run;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Jun 2016 09:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280127#M56561</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-25T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280168#M56567</link>
      <description>&lt;P&gt;Hi RW9 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes , you are right , but in the latest data i don't have all the NPIs present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Latest data&amp;nbsp;have only 2000 NPIs which are correct i need to repair the 12k NPI(Unique NPIs) &amp;nbsp;in old data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HI Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SImple merge and sort would not help in this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am taking latest data as a reference only for 2k good records after this i have remaining 12k unique NPI which needs to get repaired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Challege is , a single person is working as individual and in a hospital as group , all have there own style of updating the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thats cause huge problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing i would like to ask is ; do we have any alorithem in SAS EG or any specific process inbuilt in EG , so that i can handle this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things i am trying is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sound like - in data we can have same named people with same city and Zip and also they eventully works in same hospital.&lt;/P&gt;&lt;P&gt;so, for this i need to try something else like to get a flag generated for this , so that i can figure out real one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 17:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280168#M56567</guid>
      <dc:creator>Lohia</dc:creator>
      <dc:date>2016-06-25T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Repair the data : Mapping the latest data into old data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280182#M56569</link>
      <description>&lt;PRE&gt;
So what is your rules? How do we know what is right information, what is wrong information ?

&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jun 2016 05:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repair-the-data-Mapping-the-latest-data-into-old-data/m-p/280182#M56569</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-26T05:01:13Z</dc:date>
    </item>
  </channel>
</rss>

