<?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: Proc sql issue during 9.1.3 to 9.3 migration in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153458#M298497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference are unlikely the SAS version, rather that you are going from explicit SQL pass-to to using implicit pass-thru. Add options sastrace=',,,d' sastreceloc=saslog msglevel=i; to your program and see what's going on with the Oracle connection.&lt;/P&gt;&lt;P&gt;Also, is 9.3 installed on a new server? If so, other parameters such as bandwidth to the Oracle server, server configuration etc can play a part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Mar 2014 12:04:28 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-03-23T12:04:28Z</dc:date>
    <item>
      <title>Proc sql issue during 9.1.3 to 9.3 migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153457#M298496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all,&lt;/P&gt;&lt;P&gt;We're undergoing migration from 9.1.3 to 9.3. As part of that we've created direct feeds into libraries of our Datawarehouse oracle databases on the server. However I cannot get my 9.1.3 queries to work as quickly as they did without the oracle connection and libname code in the query. In 9.1.3 it was&lt;/P&gt;&lt;P&gt;Proc SQL NoPrint;&lt;/P&gt;&lt;P&gt; connect to oracle (user=xxxxx password=xxxxx path='oraprd12.clear1');&lt;/P&gt;&lt;P&gt; drop table prod.prod_acct_2mths;&lt;/P&gt;&lt;P&gt; create table prod.prod_acct_2mths as select * from connection to oracle&lt;/P&gt;&lt;P&gt; (select distinct&lt;/P&gt;&lt;P&gt; e.ac_ar_id, e.ac_no, ph.pg4, ph.pg6, ph.pd_id&lt;/P&gt;&lt;P&gt; from tdw.jnl_det b, tdw.ac_ar e, Acct_mth_2 g, tdw.cst cst,&lt;/P&gt;&lt;P&gt; prod_hierarchy ph&lt;/P&gt;&lt;P&gt; where b.rev_pd_id = ph.pd_id&lt;/P&gt;&lt;P&gt; and e.ac_ar_id=b.ac_ar_id&lt;/P&gt;&lt;P&gt; and b.rpt_amt &amp;gt; 0 &lt;/P&gt;&lt;P&gt; and b.sro_id = 1&amp;nbsp; &lt;/P&gt;&lt;P&gt; and b.acct_mnth = g.Year_Month&lt;/P&gt;&lt;P&gt; and cst.cst_id = e.p_cst_id&lt;/P&gt;&lt;P&gt; and cst.cst_mkt_seg_id in (1164337)&lt;/P&gt;&lt;P&gt; group by e.ac_ar_id, e.ac_no, ph.pg4, ph.pg6, ph.pd_id);&lt;/P&gt;&lt;P&gt;Disconnect from oracle;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that the libraries are permanently available I've been using this.&lt;/P&gt;&lt;P&gt;Proc SQL NoPrint;&lt;/P&gt;&lt;P&gt; drop table prod.prod_acct_2mths;&lt;/P&gt;&lt;P&gt; create table prod.prod_acct_2mths as select distinct&lt;/P&gt;&lt;P&gt; e.ac_ar_id, e.ac_no, ph.pg4, ph.pg6, ph.pd_id&lt;/P&gt;&lt;P&gt; from tdw.jnl_det b, tdw.ac_ar e, Acct_mth_2 g, tdw.cst cst,&lt;/P&gt;&lt;P&gt; prod_hierarchy ph&lt;/P&gt;&lt;P&gt; where b.rev_pd_id = ph.pd_id&lt;/P&gt;&lt;P&gt; and e.ac_ar_id=b.ac_ar_id&lt;/P&gt;&lt;P&gt; and b.rpt_amt &amp;gt; 0 &lt;/P&gt;&lt;P&gt; and b.sro_id = 1&amp;nbsp; &lt;/P&gt;&lt;P&gt; and b.acct_mnth = g.Year_Month&lt;/P&gt;&lt;P&gt; and cst.cst_id = e.p_cst_id&lt;/P&gt;&lt;P&gt; and cst.cst_mkt_seg_id in (1164337)&lt;/P&gt;&lt;P&gt; group by e.ac_ar_id, e.ac_no, ph.pg4, ph.pg6, ph.pd_id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;However it takes hours in 9.3 compared to minutes in the 9.1.3 environment. What am i doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 07:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153457#M298496</guid>
      <dc:creator>ngaiwill</dc:creator>
      <dc:date>2014-03-23T07:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql issue during 9.1.3 to 9.3 migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153458#M298497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference are unlikely the SAS version, rather that you are going from explicit SQL pass-to to using implicit pass-thru. Add options sastrace=',,,d' sastreceloc=saslog msglevel=i; to your program and see what's going on with the Oracle connection.&lt;/P&gt;&lt;P&gt;Also, is 9.3 installed on a new server? If so, other parameters such as bandwidth to the Oracle server, server configuration etc can play a part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 12:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153458#M298497</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-03-23T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql issue during 9.1.3 to 9.3 migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153459#M298498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! have got the system admins looking at it for me. Yes it is onto a different server and the oracle databases are a new connection type for this server, so I'm thinking its the configuration or bandwith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 21:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-issue-during-9-1-3-to-9-3-migration/m-p/153459#M298498</guid>
      <dc:creator>ngaiwill</dc:creator>
      <dc:date>2014-03-23T21:44:29Z</dc:date>
    </item>
  </channel>
</rss>

