<?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 Question about 'excessive use of resources' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941773#M369431</link>
    <description>&lt;P&gt;I find my self stuck in a situation where I need to create a full Cartesian Join between two datasets.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Dataset OBS has 1000 observations and Dataset JCM has 10000 observations.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I’m using Proc SQL, for the join.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;But during a subsequent sort of the 10 million observation dataset&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I sometimes (not always) get kicked out of SAS OnDemand for Academics for ‘excessive use of resources’.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I’m wondering if &amp;nbsp;whether or not I get kicked out is governed solely by my demand on the resources or is it also dependent on the overall demand for resources by other users.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Would I have better luck running this code during off-peak hours?&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;If so, when would that be? &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 16:33:12 GMT</pubDate>
    <dc:creator>genemroz</dc:creator>
    <dc:date>2024-08-29T16:33:12Z</dc:date>
    <item>
      <title>Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941773#M369431</link>
      <description>&lt;P&gt;I find my self stuck in a situation where I need to create a full Cartesian Join between two datasets.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Dataset OBS has 1000 observations and Dataset JCM has 10000 observations.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I’m using Proc SQL, for the join.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;But during a subsequent sort of the 10 million observation dataset&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I sometimes (not always) get kicked out of SAS OnDemand for Academics for ‘excessive use of resources’.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;I’m wondering if &amp;nbsp;whether or not I get kicked out is governed solely by my demand on the resources or is it also dependent on the overall demand for resources by other users.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Would I have better luck running this code during off-peak hours?&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;If so, when would that be? &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941773#M369431</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2024-08-29T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941779#M369433</link>
      <description>&lt;P&gt;SAS On Demand allows many users to access the resources at the same time. So definitely, the resources available depends on other users as well.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941779#M369433</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-08-29T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941784#M369434</link>
      <description>&lt;P&gt;It never hurts to include the code you are running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing that &lt;STRONG&gt;may&lt;/STRONG&gt; reduce resources used if you sort data using Proc Sort in a separate step and use the TAGSORT option. This creates smaller temporary data sets by only using the BY variables and observation numbers instead of moving lots of other variables around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your description I can't tell if you are using the SQL Order by or a separate step to sort the data. If ORDER BY is related to the resource limit a separate sort step might be in order. Can't hurt to test. It might help to show your code for other suggestions if you doing anything other than a simple select. There may be ways to break things up into steps that don't trigger resource limits.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941784#M369434</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-29T16:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941812#M369440</link>
      <description>Basic things to consider:&lt;BR /&gt;&lt;BR /&gt;Do you need all the rows?&lt;BR /&gt;Do you need all the columns?&lt;BR /&gt;Are there silly definitions such as all character fields defined as 200 characters long?&lt;BR /&gt;Any way you can shrink the data before joining can only help.</description>
      <pubDate>Thu, 29 Aug 2024 17:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941812#M369440</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-08-29T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941853#M369448</link>
      <description>&lt;P&gt;There is a disk usage limit of 5 GB in SAS On Demand. Your cartesian join can exceed this limit, depending on the observation size&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 20:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941853#M369448</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-08-29T20:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941861#M369451</link>
      <description>&lt;P&gt;Depending on your actual business requirement, why do a Cartesian join at all? Often these types of processing can be solved with DATA step table joining so you avoid the blow out in size. So far all you have explained is how you&amp;nbsp; are trying to solve your problem, without describing what it actually is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 21:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/941861#M369451</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-08-29T21:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question about 'excessive use of resources'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/942035#M369475</link>
      <description>&lt;P&gt;Thanks for these suggestions. &amp;nbsp;In the end, I was able to accomplish the Cartesian join and subsequent sort through a combination of actions:&lt;/P&gt;
&lt;P&gt;1. &amp;nbsp;Deleting a couple of unnecessary variables&lt;/P&gt;
&lt;P&gt;2. &amp;nbsp;Using the Compress option to make the input and output datasets smaller&lt;/P&gt;
&lt;P&gt;3. &amp;nbsp;Dividing the input datasets into smaller subsets for the Cartesian join.&lt;/P&gt;
&lt;P&gt;4. &amp;nbsp;Sorting the subsetted Cartesian Join datasets by following the divide and conquer method suggested in a paper entitled "Sorting a Large Data Set When Space is Limited" by S. Sridharma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit tedious to get it all sorted out but it worked...&lt;/P&gt;
&lt;P&gt;Thanks to all who responded with suggestions,&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 19:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-excessive-use-of-resources/m-p/942035#M369475</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2024-08-30T19:43:43Z</dc:date>
    </item>
  </channel>
</rss>

