<?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: Temp Tab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431549#M106765</link>
    <description>&lt;P&gt;You're using * in your SELECT statement. How many variables are you using in your report compared to whats in the data set? What happens if you limit the number of variables?&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2018 19:11:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-27T19:11:25Z</dc:date>
    <item>
      <title>Temp Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431515#M106756</link>
      <description>&lt;P&gt;I have read several posts n temp tables however let me explain my situation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sqlsvr (&amp;amp;medblogin);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CREATE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; T_LN &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection to sqlsvr&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; ( &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; T_LN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;where cat_id in (2,3,5)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT face="Courier New" size="3"&gt;option (maxdop &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;)ln&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;disconnect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sqlsvr;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a passthrough query that initially results in close to 900K records&lt;/P&gt;
&lt;P&gt;I use the table later in a proc report and attempting to create and place contents into a temp table in effort to get the proc report to process faster.&amp;nbsp; I created a dataset however it does not speed up processing in the proc report.&amp;nbsp; Is a temp table the answer and can I get an example&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 04:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431515#M106756</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2018-01-27T04:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431520#M106758</link>
      <description>Do i understand you correctly that your current situation is that you created a 900K observation SAS data set, and your PROC REPORT on that data is too slow?&lt;BR /&gt;Rum your report using OPTIONS FULLSTIMER; to attempt to understand where your bottleneck is.&lt;BR /&gt;Even if 900K doesnt sound huge, you might want try to limit the data further if possible.</description>
      <pubDate>Sat, 27 Jan 2018 07:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431520#M106758</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-01-27T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431549#M106765</link>
      <description>&lt;P&gt;You're using * in your SELECT statement. How many variables are you using in your report compared to whats in the data set? What happens if you limit the number of variables?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 19:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Temp-Tab/m-p/431549#M106765</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-27T19:11:25Z</dc:date>
    </item>
  </channel>
</rss>

