<?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: Left join on mutltiiple tables using loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447196#M282642</link>
    <description>&lt;P&gt;Glad to know that.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 17:06:38 GMT</pubDate>
    <dc:creator>Dozo92i</dc:creator>
    <dc:date>2018-03-20T17:06:38Z</dc:date>
    <item>
      <title>Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441540#M282631</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a proc sql left join on many tables using a loop but it took too many time to perform since I got pretty big tables, so I wondered if there is a better way to do it. I got 12 tables with same variable ID and other numbered variables :&lt;/P&gt;&lt;P&gt;Table 1 has ID, A_1,B_1,C_1 as variables&lt;/P&gt;&lt;P&gt;Table 2 has ID, A_2, B_2, C_2 as variables ...&lt;/P&gt;&lt;P&gt;Table i has ID, A_i ,B_i, C_i as variables for i from 3 to 12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a single table which is the result of a left join of all those tables : &amp;nbsp;ID,A_1,B_1,C_1, A_2,B_2,C_2....A_12,B_12_C12 . Down below is an example of a macro i use for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro join();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%do j= 2&amp;nbsp;%to 12 ;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table &lt;SPAN&gt;table1&amp;nbsp;&lt;/SPAN&gt;as select&lt;BR /&gt;a.*,&lt;BR /&gt;b.*&lt;BR /&gt;from table1&amp;nbsp;as a left join table&amp;amp;j as b&lt;BR /&gt;on a.id=b.id ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thiss gives me a result but it took too long if I have huge tables( around 20 millions of rows).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441540#M282631</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-02T15:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441548#M282632</link>
      <description>&lt;P&gt;What are the relationships between your tables with regard to id?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 12:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441548#M282632</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-02T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441557#M282633</link>
      <description>&lt;P&gt;Posting test data and required output sure helps get a point across.&amp;nbsp; From what you post I don't see why you do not use Base SAS merge, as this will make it far simpler for you:&lt;/P&gt;
&lt;PRE&gt;data want;
  merge table:;
  by id;
run;&lt;/PRE&gt;
&lt;P&gt;Note, I have not tested this, so not sure if the : actually works in this context, you may have to put table1 table2 etc.&amp;nbsp; Still be simpler coding than using sql.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 12:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441557#M282633</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-02T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441587#M282634</link>
      <description>&lt;P&gt;Let's suppose that the ID identifies a unique customer and :&lt;/P&gt;&lt;P&gt;- A_i &amp;nbsp; &amp;nbsp;represents the amount the customer should pay back for a car loan,&lt;/P&gt;&lt;P&gt;- B_ i &amp;nbsp; &lt;SPAN&gt;represents &lt;/SPAN&gt;&lt;SPAN&gt;the amount the customer should pay back&amp;nbsp;for a&amp;nbsp;&lt;/SPAN&gt;house loan&lt;/P&gt;&lt;P&gt;- C_ i&lt;SPAN&gt;&amp;nbsp; represents &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the amount the customer should pay back&amp;nbsp;for &lt;/SPAN&gt;leisure loan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" i " &amp;nbsp;is the number of the month (i=1 corresponds to January data, i=2 corresponds to February data and so on ). It means " table_i " are monthly historical tables that I&amp;nbsp;want to gather into a unique dataset for a modeling purpose.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441587#M282634</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-02T15:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441596#M282635</link>
      <description>&lt;P&gt;Then the data should be modeled in a way that allow simple variable naming, yet powerful storage:&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; LOAN_TYPE&amp;nbsp; TIME_POINT&amp;nbsp; &amp;nbsp;VALUE&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; Car&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dd-mmm-yyyy&amp;nbsp; xxx.xx&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the above structure you can have one dataset, with simple metadata - makes programming far simpler - minimum storage requirements (transposed data often has large quantities of blank data cells), and if need be at any point can be transposed up into the way you have it now.&amp;nbsp; There are no downsides to normalised data, only pluses.&amp;nbsp; Note also I put date in rather than just month thus avoiding nasty year issues, and allowing use of all the date functions.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441596#M282635</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-02T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441599#M282636</link>
      <description>&lt;P&gt;Thanks for taking the time to answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually the problem is a bit difficult to explain that's why I use a simplified example.&lt;/P&gt;&lt;P&gt;I'll give a try to your suggestion to see if it improves the processing time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's consider&amp;nbsp;7 tables (It could be more, like 12 as i mentioned in my post)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA table1;&lt;BR /&gt;INPUT id A1 B1 C1;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 91 11 212&lt;BR /&gt;2 92 12 222&lt;BR /&gt;3 93 13 233&lt;BR /&gt;4 94 14 242&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA table2;&lt;BR /&gt;INPUT id A2 B2 C2;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 81 11 112&lt;BR /&gt;2 82 12 122&lt;BR /&gt;3 83 13 133&lt;BR /&gt;4 84 14 142&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA table3;&lt;BR /&gt;INPUT id A3 B3 C3;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 71 10 111&lt;BR /&gt;2 72 11 121&lt;BR /&gt;3 73 12 131&lt;BR /&gt;4 74 13 141&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA table4;&lt;BR /&gt;INPUT id A4 B4 C4;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 61 9 110&lt;BR /&gt;2 62 8 120&lt;BR /&gt;3 63 11 130&lt;BR /&gt;4 64 12 140&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA table5;&lt;BR /&gt;INPUT id A5 B5 C5;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 60 8 109&lt;BR /&gt;2 61 7 119&lt;BR /&gt;3 62 10 129&lt;BR /&gt;4 63 11 139&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA table6;&lt;BR /&gt;INPUT id A6 B6 C6;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 59 7 108&lt;BR /&gt;2 60 6 118&lt;BR /&gt;3 61 9 128&lt;BR /&gt;4 62 10 138&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA table7;&lt;BR /&gt;INPUT id A7 B7 C7;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 50 6 102&lt;BR /&gt;2 55 7 110&lt;BR /&gt;3 56 8 111&lt;BR /&gt;4 53 9 120&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro join();&lt;/P&gt;&lt;P&gt;%do j= 2 %to 7 ;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table table1 as select&lt;BR /&gt;a.*,&lt;BR /&gt;b.*&lt;BR /&gt;from table1 as a left join table&amp;amp;j as b&lt;BR /&gt;on a.id=b.id ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%join()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should look like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id &amp;nbsp; A1 &amp;nbsp; B1 &amp;nbsp; C1 &amp;nbsp; A2 &amp;nbsp; B2 &amp;nbsp; C2 &amp;nbsp; A3 &amp;nbsp; B3 &amp;nbsp; C3 &amp;nbsp; A4 &amp;nbsp; B4 &amp;nbsp; C4 &amp;nbsp; A5 &amp;nbsp; B5 &amp;nbsp; C5 &amp;nbsp; A6 &amp;nbsp; B6 &amp;nbsp; C6 &amp;nbsp; A7 &amp;nbsp; B7 &amp;nbsp; C7&lt;BR /&gt;1 &amp;nbsp; 91 &amp;nbsp; 11 &amp;nbsp; 212 &amp;nbsp; 81 &amp;nbsp; 11 &amp;nbsp; 112 &amp;nbsp; 71 &amp;nbsp; 10 &amp;nbsp; 111 &amp;nbsp; 61 &amp;nbsp; 9 &amp;nbsp; 110 &amp;nbsp; 60 &amp;nbsp; 8 &amp;nbsp; &amp;nbsp;109 &amp;nbsp; 59 &amp;nbsp; 7 &amp;nbsp; 108 &amp;nbsp; 50 &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp;102&lt;BR /&gt;2 &amp;nbsp; 92 &amp;nbsp; 12 &amp;nbsp; 222 &amp;nbsp; 82 &amp;nbsp; 12 &amp;nbsp; 122 &amp;nbsp; 72 &amp;nbsp; 11 &amp;nbsp; 121 &amp;nbsp;62 &amp;nbsp; 8 &amp;nbsp; 120 &amp;nbsp; 61 &amp;nbsp; 7 &amp;nbsp; &amp;nbsp;119 &amp;nbsp; 60 &amp;nbsp; 6 &amp;nbsp; 118 &amp;nbsp; 55 &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp;110&lt;BR /&gt;3 &amp;nbsp; 93 &amp;nbsp; 13 &amp;nbsp; 233 &amp;nbsp; 83 &amp;nbsp; 13 &amp;nbsp; 133 &amp;nbsp; 73 &amp;nbsp; 12 &amp;nbsp; 131 &amp;nbsp;63 &amp;nbsp; 11 &amp;nbsp;130 &amp;nbsp; 62 &amp;nbsp;10 &amp;nbsp; 129 &amp;nbsp;61 &amp;nbsp; 9 &amp;nbsp; 128 &amp;nbsp; 56 &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; 111&lt;BR /&gt;4 &amp;nbsp; 94 &amp;nbsp; 14 &amp;nbsp; 242 &amp;nbsp; 84 &amp;nbsp; 14 &amp;nbsp; 142 &amp;nbsp; 74 &amp;nbsp; 13 &amp;nbsp; 141 &amp;nbsp;64 &amp;nbsp; 12 &amp;nbsp;140 &amp;nbsp; 63 &amp;nbsp;11 &amp;nbsp; 139 &amp;nbsp;62 &amp;nbsp; 10 &amp;nbsp;138 &amp;nbsp; 53 &amp;nbsp; 9 &amp;nbsp; &amp;nbsp;120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441599#M282636</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-02T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441608#M282637</link>
      <description>&lt;P&gt;Actually I have no power to modify the way those datas are modeled. Your modeling is smart but I think it would lead to&amp;nbsp;very huge tables if for example we stored 10 or even &amp;nbsp;30 years of mothly historical datas. I wish I have the datas modeled the way you mentioned for my current task...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441608#M282637</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-02T16:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441669#M282638</link>
      <description>&lt;P&gt;Given that your example data show a 1:1 relationship all the way through, a simple data step merge will do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
merge
  have1
  have2
  have3
  have4
  have5
  have6
  have7
;
by id;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once that works, you can build a list of dataset names in a data step, use call symput() to store it in a macro variable, and use that in the merge statement.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441669#M282638</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-02T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441677#M282639</link>
      <description>&lt;P&gt;And using a list such as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;will work with merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;merge table: ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so if your sets are nicely named, or even groups of "nice" names lists will work.&lt;/P&gt;
&lt;P&gt;The "time" would come from large sets. It does take a certain amount of time to push lots of electrons around but I believe the overhead for a sing data step and merge is going to be less than multiple calls to Proc Sql.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/441677#M282639</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-02T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447108#M282640</link>
      <description>&lt;P&gt;Hi everyone, thanks for all your answers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;I used "merge" to join all the tables but "merge" requires sorting first all those tables and that takes too much time since the tables are pretty big. &amp;nbsp;A trick I used to Left join all my tables is to proceed as followed :&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I first do for all the tables a left join on the id of the first table &amp;nbsp;( Actually, I wanted to left join all &amp;nbsp;the tables with respect to the table1's id ). I overwrite " table_j " for j from 2&amp;nbsp;to 12 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro test();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%do j= 2 %to 12 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; create table table&amp;amp;j as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; select * from table1(keep=id) as a left join table&amp;amp;j as b on a.id=b.id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- secondly I just use a data step with many sets :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data final_table;&lt;BR /&gt;set table1;&lt;BR /&gt;set table2;&lt;BR /&gt;set table3;&lt;BR /&gt;set table4;&lt;BR /&gt;set table5;&lt;BR /&gt;set table6;&lt;BR /&gt;set table7;&lt;BR /&gt;set table8;&lt;BR /&gt;set table9;&lt;BR /&gt;set table10;&lt;BR /&gt;set table11;&lt;BR /&gt;set table12;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine and reduce processing time but the problem is that the data step doesn't ensure to match the rigth id from one table number "j" &amp;nbsp;to another.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447108#M282640</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-20T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447141#M282641</link>
      <description>&lt;P&gt;To think that a sort is not needed with SQL is a mistake. SQL just does the sort on its own, and if table1 is not sorted already, SQL will sort it 12 times, and tables 2 to 12 each once, so you get 23 sorts.&lt;/P&gt;
&lt;P&gt;Sorting all tables and doing a data step merge will need only 12 sorts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447141#M282641</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-20T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Left join on mutltiiple tables using loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447196#M282642</link>
      <description>&lt;P&gt;Glad to know that.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 17:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Left-join-on-mutltiiple-tables-using-loop/m-p/447196#M282642</guid>
      <dc:creator>Dozo92i</dc:creator>
      <dc:date>2018-03-20T17:06:38Z</dc:date>
    </item>
  </channel>
</rss>

