<?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: combine tables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112464#M9558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, I agree with Linlin.&amp;nbsp; There are some additional things that you can do to potentially make the process faster.&amp;nbsp; I assume you are using EGuide's query builder task.&amp;nbsp; If you are doing this as a one-off, then 30 minutes is tolerable; if it is part of a production activity, then it may not be acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;make sure the data are in the order of the join variables first.&amp;nbsp; That way PROC SQL won't have to re-sort them to do the join.&lt;/LI&gt;&lt;LI&gt;if you have done other data transformations in previous tasks, make sure you have saved the data set (if it is a VIEW, then SAS must redo the transformations as part of the query builder task.&lt;/LI&gt;&lt;LI&gt;keep only the variables that you need.&lt;/LI&gt;&lt;LI&gt;There are other tips here, but you can't necessarily get to them in Query Builder.&amp;nbsp; &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm" title="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 14:49:32 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2013-01-03T14:49:32Z</dc:date>
    <item>
      <title>combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112461#M9555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 8 datasets to combine to get the reports for a project I am working on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what would be the most efficent way to combine these tables?&lt;/P&gt;&lt;P&gt;is it good to add all 8 tables together in one step or add 2 tables with needed columns first and then add one by one???..&lt;/P&gt;&lt;P&gt;Query runs for 30 minutes with 8 tables in one step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 18:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112461#M9555</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2013-01-02T18:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112462#M9556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one step is better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 18:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112462#M9556</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-01-02T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112463#M9557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 21:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112463#M9557</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2013-01-02T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112464#M9558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, I agree with Linlin.&amp;nbsp; There are some additional things that you can do to potentially make the process faster.&amp;nbsp; I assume you are using EGuide's query builder task.&amp;nbsp; If you are doing this as a one-off, then 30 minutes is tolerable; if it is part of a production activity, then it may not be acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;make sure the data are in the order of the join variables first.&amp;nbsp; That way PROC SQL won't have to re-sort them to do the join.&lt;/LI&gt;&lt;LI&gt;if you have done other data transformations in previous tasks, make sure you have saved the data set (if it is a VIEW, then SAS must redo the transformations as part of the query builder task.&lt;/LI&gt;&lt;LI&gt;keep only the variables that you need.&lt;/LI&gt;&lt;LI&gt;There are other tips here, but you can't necessarily get to them in Query Builder.&amp;nbsp; &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm" title="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001360977.htm&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 14:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112464#M9558</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-01-03T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112465#M9559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe tables are from production system. I will try first takeing out order by clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 15:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112465#M9559</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2013-01-03T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112466#M9560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just wanted to update this with my experience. It seems query ran faster when tables are added one by one than combining all 8 tables in one step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually ran out of space on work library. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 16:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112466#M9560</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2013-01-09T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112467#M9561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, from my point of view it's better to hardcode everything.&lt;/P&gt;&lt;P&gt;This will allow you to use certain options that will speed up your merge.&lt;/P&gt;&lt;P&gt;As Doc@Duke mentioned - it's vital for datasets to be sorted by variables which will be the keys for merging in order to decrease calculations AND memory consumption.&lt;/P&gt;&lt;P&gt;Maybe you can just explain your case and we'll see what we can do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About space on work library. There's an important case when SAS is installed on Windows systems, which has C: drive with several Gb for "System purposes" (with Windows installed on it) and large &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; (or any other letter) drive as a main storage appliance. For example, we have IBM blade server which implies this disk partitioning structure: C: 50 Gb &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; 500 Gb.&lt;/P&gt;&lt;P&gt;Now, by default SAS assigns WORK library to the folder which is in your "Windows user" folder, which is on drive C:. SAS also use temprorary folders in order to perform sorting and merging (also on C:). So in this case, even if you have datasets in libraries, that placed on a large storage (D:), if you try to merge or sort it SAS will use space on C:.&lt;/P&gt;&lt;P&gt;In order to "heal" this one can change the configuration file a bit. If you have &lt;STRONG&gt;this&lt;/STRONG&gt; problem, I can explain you how to fix configuration file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 07:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112467#M9561</guid>
      <dc:creator>ghastly_kitten</dc:creator>
      <dc:date>2013-01-10T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: combine tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112468#M9562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing info about work library. I am learning more about the tables and it's contents. Gives me some idea, joining&amp;nbsp; these tables in PROC SQL and reducing the time it takes to run&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/combine-tables/m-p/112468#M9562</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2013-01-10T15:54:55Z</dc:date>
    </item>
  </channel>
</rss>

