<?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: very slow performance from proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42111#M10917</link>
    <description>support helped.&lt;BR /&gt;
&lt;BR /&gt;
bulkload= is not available on UNIX&lt;BR /&gt;
insertbuff= works!&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
    <pubDate>Tue, 09 Jun 2009 15:31:30 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-09T15:31:30Z</dc:date>
    <item>
      <title>very slow performance from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42109#M10915</link>
      <description>I'm trying to insert into a SQL Server table from SAS SPDS table using proc sql.&lt;BR /&gt;
It is running, but very slow. &lt;BR /&gt;
&lt;BR /&gt;
~35 million records (~5 GB datasize) in 5 hours.&lt;BR /&gt;
connection is via ODBC&lt;BR /&gt;
&lt;BR /&gt;
Is there anything I can tune to make it go faster?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
========================== code ==========================&lt;BR /&gt;
/*****************/&lt;BR /&gt;
/* SAS SPDS Libs */&lt;BR /&gt;
/*****************/&lt;BR /&gt;
LIBNAME src   sasspds      host="sas01" serv="5190" user="spdsadm"   ip=yes schema=  "SRC" password="XXXX" compress=yes;&lt;BR /&gt;
&lt;BR /&gt;
/*****************/&lt;BR /&gt;
/* SAS SPDS Libs */&lt;BR /&gt;
/*****************/&lt;BR /&gt;
libname SQL ODBC dsn=DWSQLServer user=sas password=XXXX schema=dbo;&lt;BR /&gt;
&lt;BR /&gt;
%let spdssize = 49376m;&lt;BR /&gt;
&lt;BR /&gt;
%let path=./logs;&lt;BR /&gt;
%let LogFile="&amp;amp;path/post_insert_prod_model_scores_to_sql.log";&lt;BR /&gt;
%let LstFile="&amp;amp;path/post_insert_prod_model_scores_to_sql.lst";&lt;BR /&gt;
&lt;BR /&gt;
Proc printto log=&amp;amp;LogFile print=&amp;amp;LstFile new; run;&lt;BR /&gt;
&lt;BR /&gt;
options obs=max;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
insert into sq.stg_model_score&lt;BR /&gt;
  (id,&lt;BR /&gt;
  model_output_id,&lt;BR /&gt;
  model_score,&lt;BR /&gt;
  model_decile_level,&lt;BR /&gt;
  source_id,&lt;BR /&gt;
  score_date,&lt;BR /&gt;
  scored_by&lt;BR /&gt;
  )&lt;BR /&gt;
select&lt;BR /&gt;
  id,&lt;BR /&gt;
  model_output_id,&lt;BR /&gt;
  model_score,&lt;BR /&gt;
  model_decile_level,&lt;BR /&gt;
  source_id,&lt;BR /&gt;
  model_scored_date,&lt;BR /&gt;
  model_scored_by&lt;BR /&gt;
from source.SCORE_PROD_OUTPUT;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
quit;</description>
      <pubDate>Mon, 08 Jun 2009 19:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42109#M10915</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-08T19:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: very slow performance from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42110#M10916</link>
      <description>Have you tried the BULKLOAD= and BULKCOPY= options?</description>
      <pubDate>Tue, 09 Jun 2009 02:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42110#M10916</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-09T02:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: very slow performance from proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42111#M10917</link>
      <description>support helped.&lt;BR /&gt;
&lt;BR /&gt;
bulkload= is not available on UNIX&lt;BR /&gt;
insertbuff= works!&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Tue, 09 Jun 2009 15:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/very-slow-performance-from-proc-sql/m-p/42111#M10917</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-09T15:31:30Z</dc:date>
    </item>
  </channel>
</rss>

