<?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: Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927737#M2387</link>
    <description>&lt;P&gt;You don't show how you connect to Oracle.&lt;/P&gt;
&lt;P&gt;Basically it pass-through means writing code that the external data base recognizes and execute it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example from the online help&lt;/P&gt;
&lt;PRE&gt;proc sql;
connect to oracle as mycon (user=myusr1
   password=mypwd1 path='mysrv1');

select *
   from connection to mycon
   /* everything in the next set of () are executed in the Oracle data base*/
    (select empid, lastname, firstname,
            hiredate, salary
     from employees where 
          hiredate&amp;gt;='31-DEC-88');

disconnect from mycon;
quit;&lt;/PRE&gt;
&lt;P&gt;IF all of the sets in your query are in the data base then you would use the schema table names as Oracle has them. So all the joining and selection would happen in the Oracle database instead of in the SAS work space.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 15:43:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-05-09T15:43:17Z</dc:date>
    <item>
      <title>Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927721#M2381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting below error message when i am trying to connect Oracle database from SAS Studio using Viya4 &lt;EM&gt;&lt;STRONG&gt;(the code ran fine yesterday without any errors though)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskarkothavt_0-1715263531314.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96376i069EE0FD43D0C66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskarkothavt_0-1715263531314.png" alt="bhaskarkothavt_0-1715263531314.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Creating an aggregated table which will return 700 -8000 rows and SQL code is as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskarkothavt_1-1715263581449.png" style="width: 495px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96377i823553C1188A3B49/image-dimensions/495x340?v=v2" width="495" height="340" role="button" title="bhaskarkothavt_1-1715263581449.png" alt="bhaskarkothavt_1-1715263581449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could some please help me how to overcome this "Insufficient space".&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927721#M2381</guid>
      <dc:creator>bhaskarkothavt</dc:creator>
      <dc:date>2024-05-09T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927723#M2382</link>
      <description>&lt;P&gt;Something in the data may be using many more records than you expect in the final result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When sorting in general SAS requires about 3 times as much space as the data would occupy as a data set because of use of temporary storage and manipulation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Approaches that may work:&lt;/P&gt;
&lt;P&gt;1) Pass-through SQL if all the source tables are in the Oracle database&lt;/P&gt;
&lt;P&gt;2) Do the join into a separate table then request the distinct count from that resulting table.&lt;/P&gt;
&lt;P&gt;3) reduce the size of alias table A by applying the Where clause in the From instead of after the joins occur (I'm not going to retype everything from a picture, post code as text if you want clearer examples of what the code might look like)&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927723#M2382</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-09T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927726#M2385</link>
      <description>My apologies for not pasting the sql code in the original request. Here is the code and could you please elaborate what you meant by 1 approach.&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;proc sql;&lt;BR /&gt;  create table audit_agg as&lt;BR /&gt;  select c.course,&lt;BR /&gt;   count(distinct a.stuno),&lt;BR /&gt;   b.gpaname,&lt;BR /&gt;   c.yt&lt;BR /&gt;  from uachieve.job_queue_run a&lt;BR /&gt;  inner join uachieve.job_queue_subreq b&lt;BR /&gt;   on b.jobq_seq_no = a.int_seq_no&lt;BR /&gt;  left outer join uachieve.job_queue_course c&lt;BR /&gt;   on c.jobq_seq_no = a.int_seq_no&lt;BR /&gt;   and c.rtabx = b.rtabx&lt;BR /&gt;and c.stabx = b.stabx&lt;BR /&gt;where a.userid like '%INMAJRGPA%'&lt;BR /&gt;and substr(b.gpaname, 1, 1) = 'P' /*Pathways courses*/&lt;BR /&gt;and c.yt = "20&amp;amp;yr.&amp;amp;tm."&lt;BR /&gt;group by c.course, b.gpaname, yt;&lt;BR /&gt;quit;</description>
      <pubDate>Thu, 09 May 2024 14:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927726#M2385</guid>
      <dc:creator>bhaskarkothavt</dc:creator>
      <dc:date>2024-05-09T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927737#M2387</link>
      <description>&lt;P&gt;You don't show how you connect to Oracle.&lt;/P&gt;
&lt;P&gt;Basically it pass-through means writing code that the external data base recognizes and execute it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example from the online help&lt;/P&gt;
&lt;PRE&gt;proc sql;
connect to oracle as mycon (user=myusr1
   password=mypwd1 path='mysrv1');

select *
   from connection to mycon
   /* everything in the next set of () are executed in the Oracle data base*/
    (select empid, lastname, firstname,
            hiredate, salary
     from employees where 
          hiredate&amp;gt;='31-DEC-88');

disconnect from mycon;
quit;&lt;/PRE&gt;
&lt;P&gt;IF all of the sets in your query are in the data base then you would use the schema table names as Oracle has them. So all the joining and selection would happen in the Oracle database instead of in the SAS work space.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 15:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927737#M2387</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-09T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed ERROR: Insufficient space in file WORK.'SASTMP-000000010'.UTILITY</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927741#M2388</link>
      <description>I followed the approach 2 and it worked without any issues thanks a lot.</description>
      <pubDate>Thu, 09 May 2024 15:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Urgent-help-needed-ERROR-Insufficient-space-in-file-WORK-SASTMP/m-p/927741#M2388</guid>
      <dc:creator>bhaskarkothavt</dc:creator>
      <dc:date>2024-05-09T15:58:49Z</dc:date>
    </item>
  </channel>
</rss>

