<?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: SQL merge to SAS merge (Proc SQL) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649286#M194626</link>
    <description>Thanks Reeza.&lt;BR /&gt;&lt;BR /&gt;For the first part, I tried :&lt;BR /&gt;INCK('day',pi.DateStart,ld.TDate)&amp;gt;=0&lt;BR /&gt;&lt;BR /&gt;How would I code the second part which tried to use tdate when DateEnd is not populated.</description>
    <pubDate>Wed, 20 May 2020 16:24:50 GMT</pubDate>
    <dc:creator>PetePatel</dc:creator>
    <dc:date>2020-05-20T16:24:50Z</dc:date>
    <item>
      <title>SQL merge to SAS merge (Proc SQL)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649269#M194619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I convert the following code extract from SQL to SAS?&lt;/P&gt;&lt;P&gt;I don't believe datediff works in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LEFT JOIN pi_table as pi&lt;BR /&gt;ON lo.id=pi.id&lt;BR /&gt;AND DATEDIFF(dd,pi.DateStart,ld.TDate)&amp;gt;=0&lt;BR /&gt;AND DATEDIFF(dd,ld.TDate,ISNULL(pi.DateEnd,ld.TDate))&amp;gt;=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 15:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649269#M194619</guid>
      <dc:creator>PetePatel</dc:creator>
      <dc:date>2020-05-20T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL merge to SAS merge (Proc SQL)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649277#M194622</link>
      <description>&lt;P&gt;INTCK() would be an equivalent function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649277#M194622</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-20T16:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL merge to SAS merge (Proc SQL)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649286#M194626</link>
      <description>Thanks Reeza.&lt;BR /&gt;&lt;BR /&gt;For the first part, I tried :&lt;BR /&gt;INCK('day',pi.DateStart,ld.TDate)&amp;gt;=0&lt;BR /&gt;&lt;BR /&gt;How would I code the second part which tried to use tdate when DateEnd is not populated.</description>
      <pubDate>Wed, 20 May 2020 16:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649286#M194626</guid>
      <dc:creator>PetePatel</dc:creator>
      <dc:date>2020-05-20T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL merge to SAS merge (Proc SQL)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649290#M194629</link>
      <description>&lt;P&gt;What does ISNULL() do in your second filter? You have to convert all your functions to SAS functions or explicit SQL Pass through.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-merge-to-SAS-merge-Proc-SQL/m-p/649290#M194629</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-20T16:35:42Z</dc:date>
    </item>
  </channel>
</rss>

