<?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: Merging two datasets (including dates) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500543#M133326</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded the sample of the data elements on a PDF. I just created a hypothetical number. I want to merge the demographic file with the medical condition file when (Visit_Date) in the demographic file matching with (BEG_EFFECTIVE_DT_TM) in the medical condition file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2018 20:18:23 GMT</pubDate>
    <dc:creator>alotaibifm</dc:creator>
    <dc:date>2018-10-01T20:18:23Z</dc:date>
    <item>
      <title>Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500481#M133299</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a medical records data and I'm getting three separate files (Demographic file, Medication file, Diagnosis file). In each file, there is a specific date for a specific procedure. For instance, in the demographic file&amp;nbsp;has a date for the time the patient visits the Emergency room, and in the diagnosis file there are dates for each diagnosis, and finally, the medication file has dates for each medication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge all the three file in ONE dataset based on the date in the demographic file. So, I want to see if there is MATCHED date between the three files and merge them based on that. Is it possible? I have a full format date like this (28MAY2016).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500481#M133299</guid>
      <dc:creator>alotaibifm</dc:creator>
      <dc:date>2018-10-01T17:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500484#M133300</link>
      <description>&lt;P&gt;You can match on dates. Note that all dates need to be SAS date values (numeric with a date format assigned).&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500484#M133300</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-01T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500487#M133302</link>
      <description>&lt;P&gt;MERGE works as long as you want exact matches only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp; diagnosis date might be the day after the ER date, (or if a medication date might be a few days after the ER date), MERGE would not be the best tool for the job.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500487#M133302</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-01T17:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500499#M133307</link>
      <description>&lt;P&gt;Sometimes the record shows exact dates and some other observations have one or two days different. Any suggestions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500499#M133307</guid>
      <dc:creator>alotaibifm</dc:creator>
      <dc:date>2018-10-01T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500538#M133324</link>
      <description>&lt;P&gt;Can you provide any example data in the form of a data step?&lt;/P&gt;
&lt;P&gt;Don't post any sensitive data but the data should be similar to yours, such as replacing patientid information with values like 1111 2222 3333 or such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 19:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500538#M133324</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-01T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two datasets (including dates)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500543#M133326</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded the sample of the data elements on a PDF. I just created a hypothetical number. I want to merge the demographic file with the medical condition file when (Visit_Date) in the demographic file matching with (BEG_EFFECTIVE_DT_TM) in the medical condition file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 20:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-datasets-including-dates/m-p/500543#M133326</guid>
      <dc:creator>alotaibifm</dc:creator>
      <dc:date>2018-10-01T20:18:23Z</dc:date>
    </item>
  </channel>
</rss>

