<?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: How to create index before loading the data into the Output table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685949#M208080</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have only 13 columns after deleting the unwanted columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Code:&lt;/P&gt;
&lt;P&gt;Block1:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Create table T1 as select * from Original&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; where date&amp;gt;2010 and itemcategory not in ('A','B','C');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;quit;&lt;/P&gt;
&lt;P&gt;Block2:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Create table T2 as select name, area, designation, sum(salary) as Totalsum&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from T1;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;Block3:&lt;/P&gt;
&lt;P&gt;Proc Sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Create table T3 as select * from T2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;where Totalsum&amp;gt;1000;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;The above one is the sample code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the code you have posted only datasets in work are used. Please don't post a simplified version of the code you want to be optimized.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 04:58:35 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-09-23T04:58:35Z</dc:date>
    <item>
      <title>How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685919#M208062</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a table with huge volume of data (approx 500 million records) and I am using SQL Join transformation ( and doing aggregate functions, group by and having in clause). I have also created Index(on the columns that are used in the having clause) on the output table( by right clicking on the temporary output table).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is taking ages to exeute. Can someone help me here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 01:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685919#M208062</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2020-09-23T01:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685929#M208067</link>
      <description>&lt;P&gt;First, how many columns are we talking about here?&amp;nbsp; If you've got columns that are not necessary to calculations or the final results, eliminate them from the SELECT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, can you post the code?&amp;nbsp; It's pretty hard to guess at what you're doing here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 02:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685929#M208067</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-23T02:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685941#M208076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have only 13 columns after deleting the unwanted columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Code:&lt;/P&gt;
&lt;P&gt;Block1:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Create table T1 as select * from Original&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; where date&amp;gt;2010 and itemcategory not in ('A','B','C');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;quit;&lt;/P&gt;
&lt;P&gt;Block2:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Create table T2 as select name, area, designation, sum(salary) as Totalsum&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from T1;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;Block3:&lt;/P&gt;
&lt;P&gt;Proc Sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Create table T3 as select * from T2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;where Totalsum&amp;gt;1000;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;The above one is the sample code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685941#M208076</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2020-09-23T04:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685947#M208079</link>
      <description>&lt;P&gt;Without seeing the code &lt;STRONG&gt;and the log&lt;/STRONG&gt; it is hardly possible to suggest something useful.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685947#M208079</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-23T04:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685949#M208080</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have only 13 columns after deleting the unwanted columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Code:&lt;/P&gt;
&lt;P&gt;Block1:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Create table T1 as select * from Original&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; where date&amp;gt;2010 and itemcategory not in ('A','B','C');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;quit;&lt;/P&gt;
&lt;P&gt;Block2:&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Create table T2 as select name, area, designation, sum(salary) as Totalsum&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from T1;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;Block3:&lt;/P&gt;
&lt;P&gt;Proc Sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Create table T3 as select * from T2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;where Totalsum&amp;gt;1000;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;The above one is the sample code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the code you have posted only datasets in work are used. Please don't post a simplified version of the code you want to be optimized.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685949#M208080</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-23T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index before loading the data into the Output table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685959#M208083</link>
      <description>&lt;P&gt;This code does not make sense. In block 2, you create the sum of salary&amp;nbsp;&lt;EM&gt;over the whole dataset&lt;/EM&gt; and attach it to&amp;nbsp;&lt;EM&gt;every single observation&lt;/EM&gt;&amp;nbsp;of the dataset. So if that sum is larger than 1000, you will still get&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; observations in block 3; if it's smaller, you get none.&lt;/P&gt;
&lt;P&gt;Please describe what you actually want to achieve.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 05:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-index-before-loading-the-data-into-the-Output/m-p/685959#M208083</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-23T05:52:29Z</dc:date>
    </item>
  </channel>
</rss>

