<?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: Error in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258728#M49896</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78465"&gt;@_Olga_&lt;/a&gt;, I that should be clear now that you are facing an Oracle problem, not a SAS one. Seek help in Oracle forums, your Oracle DBAs instead.</description>
    <pubDate>Thu, 24 Mar 2016 06:00:31 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-03-24T06:00:31Z</dc:date>
    <item>
      <title>Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258176#M49684</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;STRONG&gt;Hello!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;STRONG&gt;The code below causes ERROR: ORACLE execute error: ORA-12801: error signaled in parallel query server P029 ORA-01652: unable to extend temp segment by 4096 in tablespace SAS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;FONT color="#000080" size="3" face="Courier New"&gt;&lt;STRONG&gt;How to fix this error?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to oracle (PATH=mypath USER='sas' PASSWORD="mypass");&lt;/P&gt;&lt;P&gt;execute(create table table1 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table2 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table3 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table4 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table5 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table6 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;execute(create table table7 as select ...) by oracle;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258176#M49684</guid>
      <dc:creator>_Olga_</dc:creator>
      <dc:date>2016-03-22T11:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258178#M49686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well first step is to break that SQL out into separate blocks and see which bit of code is causing the problem. &amp;nbsp;I can't tell from that long list of code. &amp;nbsp;Once you identify which bit of code is causing the problem, run it on Toad, or SQL developer - i.e. in the actual database iteself. &amp;nbsp;It looks from that error message that the problem is on the database, not SAS, so would need to be fixed there. &amp;nbsp;There are various things wrong with your code however - has it been tested at all? &amp;nbsp;Just from a quick glance:&lt;/P&gt;
&lt;P&gt;This code:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;create table bmv_telebank_tmp as&lt;/P&gt;
&lt;P&gt;select distinct&lt;/P&gt;
&lt;P&gt;EID,&lt;/P&gt;
&lt;P&gt;FIO_SEARCH,&lt;/P&gt;
&lt;P&gt;CAMP,&lt;/P&gt;
&lt;P&gt;RECALC_DATE,&lt;/P&gt;
&lt;P&gt;DATE_UPTO,&lt;/P&gt;
&lt;P&gt;O_CARD_SALARY,&lt;/P&gt;
&lt;P&gt;LAST_ANKETA_REF,&lt;/P&gt;
&lt;P&gt;LAST_ANKETA_BR,&lt;/P&gt;
&lt;P&gt;OFFER_ID,&lt;/P&gt;
&lt;P&gt;OFFER_STATUS_ID,&lt;/P&gt;
&lt;P&gt;OFFER_STATUS_CD,&lt;/P&gt;
&lt;P&gt;FD,&lt;/P&gt;
&lt;P&gt;max(FD) over (partition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; FIO_SEARCH, OFFER_STATUS_CD) max_FD from bmv_tlb_tmp&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*where FD=MAX_FD*/&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;Is invalid. &amp;nbsp;Missing bracket after (partition. &amp;nbsp;No from clause, by in wrong place as there is no merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code:&lt;/P&gt;
&lt;P&gt;where&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; and&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is never a good idea, it will merge every record with every reocord, i.e. number of obs * number of obs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Are you familiar with SQL? &amp;nbsp;If not, then I would suggest extracting all data to SAS and then doing the rest of the processing there.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258178#M49686</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-22T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258185#M49688</link>
      <description>I've edited the code.</description>
      <pubDate>Tue, 22 Mar 2016 11:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258185#M49688</guid>
      <dc:creator>_Olga_</dc:creator>
      <dc:date>2016-03-22T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258189#M49689</link>
      <description>&lt;P&gt;Yes, but that doesn't really help any. &amp;nbsp;You need to test each SQL clause, in the database. &amp;nbsp;One of those clauses is either incorrect code, or uses too much resource. &amp;nbsp;I can't tell you which it is, you need to test it step by step in an Oracle app - Toad or SQL Developer. &amp;nbsp;Once you find the bit of code which does it, fix it, or fix the database. &amp;nbsp;It is not a SAS question. &amp;nbsp;A search on Google responds:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.dba-oracle.com/t_ora_12801_parallel_query.htm" target="_blank"&gt;http://www.dba-oracle.com/t_ora_12801_parallel_query.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.oracle.com/thread/2402635?tstart=0" target="_blank"&gt;https://community.oracle.com/thread/2402635?tstart=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258189#M49689</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-22T12:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258394#M49752</link>
      <description>Don't use EXECUTE when you are using querying statement (SELECT).
Use Pass through instead.

proc sql;
 connect to oracle  (PATH=mypath USER='sas' PASSWORD="mypass");
 create table want as
 select * from connection to oracle 
   (select * from ora.x);
quit;</description>
      <pubDate>Wed, 23 Mar 2016 01:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258394#M49752</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-23T01:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258460#M49790</link>
      <description>&lt;P&gt;Yes, it's not error in SAS, but in Oracle.&lt;BR /&gt;I tried to create table mytest in PL/SQL Developer, but source table bmv_tlb_tmp is big (it has 288'304'610 records).&lt;/P&gt;&lt;P&gt;I've tried to&amp;nbsp;reset parameter sort_area_size to 1048576000 or to 204857600, but it cause error:&lt;BR /&gt;ORA-12801: error signaled in parallel query server P012&lt;BR /&gt;ORA-01652: unable to extend temp segment by 4096 in tablespace SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;BR /&gt;alter session set sort_area_size=204857600;&lt;BR /&gt;create table mytest as&lt;BR /&gt;select distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIO_SEARCH,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAMP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECALC_DATE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_UPTO,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O_CARD_SALARY,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ANKETA_REF,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ANKETA_BR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFFER_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFFER_STATUS_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFFER_STATUS_CD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(FD) over (partition by FIO_SEARCH, OFFER_STATUS_CD) max_FD from bmv_tlb_tmp;&lt;/P&gt;&lt;P&gt;How to&amp;nbsp;fix the error?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258460#M49790</guid>
      <dc:creator>_Olga_</dc:creator>
      <dc:date>2016-03-23T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258465#M49794</link>
      <description>&lt;P&gt;Sorry, what is it your trying to do with the query? &amp;nbsp;This:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; max(FD) over (partition by FIO_SEARCH, OFFER_STATUS_CD) max_FD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Is your problem. &amp;nbsp;You are not using any groupings, and it seems your trying to get the max of a subgrouping, which probably means the SQL processor is trying to create numerous copies of the data and merge them. &amp;nbsp;Its hard to see what your trying to do. &amp;nbsp;You may also want to check out SQL or Oracle specific forums, as partition by is not base SQL.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258465#M49794</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-23T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258467#M49796</link>
      <description>&lt;P&gt;I need to create table mytest&amp;nbsp;not in SAS, but in Oracle (see my new comment above). It's gives the same error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORA-12801: error signaled in parallel query server P012&lt;BR /&gt;ORA-01652: unable to extend temp segment by 4096 in tablespace SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reset of&amp;nbsp;sort_area_size doesn't help.&lt;/P&gt;&lt;P&gt;Any suggessions?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258467#M49796</guid>
      <dc:creator>_Olga_</dc:creator>
      <dc:date>2016-03-23T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258694#M49890</link>
      <description>If you want create table at Oracle side, then should use EXECUTE statement.

proc sql;
connect to oracle (PATH=mypath USER='sas' PASSWORD="mypass");
execute(create table table1  x varchar(20),........... ) by oracle;</description>
      <pubDate>Thu, 24 Mar 2016 00:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258694#M49890</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-24T00:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258728#M49896</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78465"&gt;@_Olga_&lt;/a&gt;, I that should be clear now that you are facing an Oracle problem, not a SAS one. Seek help in Oracle forums, your Oracle DBAs instead.</description>
      <pubDate>Thu, 24 Mar 2016 06:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-SAS/m-p/258728#M49896</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-24T06:00:31Z</dc:date>
    </item>
  </channel>
</rss>

