<?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: Joining Two Datasets in JMP Using Closest Date Match in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Joining-Two-Datasets-in-JMP-Using-Closest-Date-Match/m-p/428250#M68515</link>
    <description>&lt;P&gt;No need to repeat the join condition in the where clause. Try on a small table first to see if the problem is resources related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP has their own community:&amp;nbsp;&lt;A href="https://community.jmp.com/&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.jmp.com/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is best to post your question there. Best of luck!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 04:26:55 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-01-17T04:26:55Z</dc:date>
    <item>
      <title>Joining Two Datasets in JMP Using Closest Date Match</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-Two-Datasets-in-JMP-Using-Closest-Date-Match/m-p/428204#M68511</link>
      <description>&lt;P&gt;Hello all.&lt;BR /&gt;&lt;BR /&gt;I am attempting to join 2 datasets in JMP using a unique identifier plus a closest date match. Rather than having dates in MDYHMS format, I have it converted to Unix timestamps (the UNIX date is the number of seconds since midnight, January 1, 1970.) The data only spans 2012- 2015 so there shouldn't be any issue with using the timestamp in lieu of the DMYHMS format. I am not particularly attached to the timestamp format though so if it seems better to do the MDYHMS format then I am flexible on that. The timestamp/date from t1 should always be greater than or equal to the timestamp/date from t2. One unique identifier will have many date matches so I want it to FIRST match on "EMP_ID_UID" and THEN match up the closest timestamps in the "date" variables. I am basing some code off of a closed topic here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Merging-two-tables-by-choosing-the-CLOSEST-dates/m-p/191428#M3975" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Merging-two-tables-by-choosing-the-CLOSEST-dates/m-p/191428#M3975&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM "V1.8" t1&lt;BR /&gt;LEFT OUTER JOIN "Subset of Relevant Unit Org Codes ONLY" t2&lt;BR /&gt;ON t1.EMP_ID_UID = t2.EMP_ID_UID AND t1.date&amp;gt;=t2.date&lt;BR /&gt;WHERE t1.date &amp;gt;= t2.date&lt;BR /&gt;GROUP BY t1.EMP_ID_UID,t1.date&lt;BR /&gt;HAVING abs(t1.date-t2.date)=min(abs(t1.date-t2.date))&lt;BR /&gt;ORDER BY t1.EMP_ID_UID&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;The query begins to run without any error messages (I understand that doesn't necessarily mean the code is correct for what I want it to do) but then it just sort of hangs there indefinitely without completing the join.&lt;BR /&gt;&lt;BR /&gt;Any thoughts or assistance would be greatly appreciated. Thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 22:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-Two-Datasets-in-JMP-Using-Closest-Date-Match/m-p/428204#M68511</guid>
      <dc:creator>sagrim</dc:creator>
      <dc:date>2018-01-16T22:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Two Datasets in JMP Using Closest Date Match</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-Two-Datasets-in-JMP-Using-Closest-Date-Match/m-p/428250#M68515</link>
      <description>&lt;P&gt;No need to repeat the join condition in the where clause. Try on a small table first to see if the problem is resources related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP has their own community:&amp;nbsp;&lt;A href="https://community.jmp.com/&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.jmp.com/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is best to post your question there. Best of luck!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 04:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-Two-Datasets-in-JMP-Using-Closest-Date-Match/m-p/428250#M68515</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-01-17T04:26:55Z</dc:date>
    </item>
  </channel>
</rss>

