<?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: optimizing proc sql join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711180#M219026</link>
    <description>&lt;P&gt;Tell us a little more about your data.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;are the IDT_RSS unique in t1, or do you have multiple entries per IDT_RSS?&lt;/LI&gt;
&lt;LI&gt;same for t2?&lt;/LI&gt;
&lt;LI&gt;if IDT_RSS is non-unique in t2, do the time ranges overlap, or is each&amp;nbsp;&lt;SPAN&gt;TSP_TEST_DEB larger than the preceding TSP_TEST_FIN (if the dataset is sorted by IDT_RSS and&amp;nbsp;TSP_TEST_DEB)?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 16:28:34 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-01-13T16:28:34Z</dc:date>
    <item>
      <title>optimizing proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711175#M219024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a table t1 that holds 3 millions rows (with one datetime) and a table t2 that holds 5 millions rows (with 2 datetime)&lt;/P&gt;
&lt;P&gt;In a proc sql, i have a join like this&lt;/P&gt;
&lt;P&gt;select ...&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;FROM&amp;nbsp;t1&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; AS a LEFT JOIN t2 AS b&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;ON a.IDT_RSS=b.IDT_RSS&lt;/P&gt;
&lt;P&gt;AND a.TSP_CVL BETWEEN b.TSP_TEST_DEB AND b.TSP_TEST_FIN&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;cpu times&amp;nbsp;takes&amp;nbsp; 23 minutes. How coul I optimize ?&lt;/P&gt;
&lt;P&gt;thanks a lot in advance&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;nasser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711175#M219024</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2021-01-13T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711180#M219026</link>
      <description>&lt;P&gt;Tell us a little more about your data.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;are the IDT_RSS unique in t1, or do you have multiple entries per IDT_RSS?&lt;/LI&gt;
&lt;LI&gt;same for t2?&lt;/LI&gt;
&lt;LI&gt;if IDT_RSS is non-unique in t2, do the time ranges overlap, or is each&amp;nbsp;&lt;SPAN&gt;TSP_TEST_DEB larger than the preceding TSP_TEST_FIN (if the dataset is sorted by IDT_RSS and&amp;nbsp;TSP_TEST_DEB)?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711180#M219026</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-13T16:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711181#M219027</link>
      <description>&lt;P&gt;And some additional info: what variables are contained in the datasets, what are their types and defined lengths?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/711181#M219027</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-13T16:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/712368#M219625</link>
      <description>&lt;P&gt;Hello Kurt&lt;/P&gt;
&lt;P&gt;thanks a lot for your respons and sorry for answering in late.&lt;/P&gt;
&lt;P&gt;we succeeded to solve the problem by reducing the scope.&lt;/P&gt;
&lt;P&gt;instead of collect and treat all rows each times, we treat only one month each month.&lt;/P&gt;
&lt;P&gt;I mean we treat&amp;nbsp;only missing data in target (versus source), &amp;nbsp;instead of remove and replace.&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Nasser&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 09:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-proc-sql-join/m-p/712368#M219625</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2021-01-19T09:59:26Z</dc:date>
    </item>
  </channel>
</rss>

