<?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 Sort Command Optimisation in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/539426#M7064</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261907"&gt;@ssaha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I am using Proc Sort in a SAS program, our work directory space in Unix Server is increasing continuously and it is getting halted at some stage due to memory issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How we can optimise the Proc Sort command so that the work directory space doesn't increase much.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you using the option TAGSORT on you Proc Sort statement? That can significantly reduce the temporary data disk space required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When the total length of BY variables is small compared with the record length, TAGSORT reduces temporary disk usage considerably. However, processing time might be much higher&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 28 Feb 2019 18:25:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-02-28T18:25:19Z</dc:date>
    <item>
      <title>Proc Sort Command Optimisation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/538605#M6974</link>
      <description>&lt;P&gt;When I am using Proc Sort in a SAS program, our work directory space in Unix Server is increasing continuously and it is getting halted at some stage due to memory issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How we can optimise the Proc Sort command so that the work directory space doesn't increase much.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 10:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/538605#M6974</guid>
      <dc:creator>ssaha</dc:creator>
      <dc:date>2019-02-26T10:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sort Command Optimisation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/538606#M6975</link>
      <description>&lt;P&gt;How big is the data you are talking about?&amp;nbsp; If its reasonable size and still filling your storage space, then get a bigger storage space.&amp;nbsp; If its huge data then you might need a whole new infrastructure.&lt;/P&gt;
&lt;P&gt;As for optimising your code, without seeing any code, knowing anything about your process or system, or knowing anything about your data, I don't see how it is possible to provide any useful information.&amp;nbsp; Why do you need to sort for instance?&amp;nbsp; Can the data not be sorted up front.&amp;nbsp; What about using an index?&amp;nbsp; How is the sort to be used further along.&amp;nbsp; How is the data stored, is it locally, network, database etc.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 10:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/538606#M6975</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-26T10:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sort Command Optimisation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/539426#M7064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261907"&gt;@ssaha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I am using Proc Sort in a SAS program, our work directory space in Unix Server is increasing continuously and it is getting halted at some stage due to memory issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How we can optimise the Proc Sort command so that the work directory space doesn't increase much.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you using the option TAGSORT on you Proc Sort statement? That can significantly reduce the temporary data disk space required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When the total length of BY variables is small compared with the record length, TAGSORT reduces temporary disk usage considerably. However, processing time might be much higher&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/539426#M7064</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-28T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sort Command Optimisation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/539432#M7066</link>
      <description>Perhaps you should work on the data first.  Does it contain variables that are $200 characters long, but only really need 5 characters of storage?  Do you know how to examine that and how to fix it?</description>
      <pubDate>Thu, 28 Feb 2019 18:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Sort-Command-Optimisation/m-p/539432#M7066</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-28T18:34:12Z</dc:date>
    </item>
  </channel>
</rss>

