<?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 Proc Sort Options in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14471#M2317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Urvish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your need for optimization is resulting from the size of your file.&amp;nbsp; I've been using SAS for more than 37 years, but don't have an answer for everything yet.&amp;nbsp; However, I'm intrigued by your question, thus am going to repost it in another thread here, as well as on SAS-L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can easily create a file that only contains the variables you are sorting on, number the records, sort the file based on those two variables, and then resort the file back to its original order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time for doing such a task is extremely less than the time required to sort the entire file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what I don't know, is whether one can then use the new file to establish an index for the original file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll let you know what I find out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 23:39:14 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-12-14T23:39:14Z</dc:date>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14466#M2312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i've 50 lacks observations to sort it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if&amp;nbsp; i'm&amp;nbsp; using Proc Sort tecnique to sort the data it is taking to much time to sort it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometime it is taking 30 min or more CPU Time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody suggest me the best solution to sort the data so that i can done my task very faster in case of low space ?&lt;/P&gt;&lt;P&gt;Which SAS options should i use to optimise the Proc Sort ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14466#M2312</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-14T19:00:31Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14467#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've asked this before.&amp;nbsp; 5,000,000 is not a large number of records for SAS and the sort time should be measured in seconds not minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of computer are you using?&lt;/P&gt;&lt;P&gt;How much free disk space to you have?&lt;/P&gt;&lt;P&gt;How much memory does your system have?&lt;/P&gt;&lt;P&gt;How many variables are in the file?&lt;/P&gt;&lt;P&gt;How many variables are you sorting on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14467#M2313</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-14T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14468#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are about to sort 2 variables &lt;/P&gt;&lt;P&gt;Dataset capacity is 3 GB &lt;/P&gt;&lt;P&gt;Observation number is more than 1.5 million&lt;/P&gt;&lt;P&gt;System capacity is 4 GB in specific drive where only we are working&amp;nbsp; &lt;/P&gt;&lt;P&gt;And actual time is more than 3 to 4 hrs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14468#M2314</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-14T19:52:38Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14469#M2315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; And total variables are 30 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14469#M2315</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-14T19:54:45Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14470#M2316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can anybody assist me with regard to Proc Sort Optimisation ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14470#M2316</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-14T22:53:15Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14471#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Urvish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your need for optimization is resulting from the size of your file.&amp;nbsp; I've been using SAS for more than 37 years, but don't have an answer for everything yet.&amp;nbsp; However, I'm intrigued by your question, thus am going to repost it in another thread here, as well as on SAS-L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can easily create a file that only contains the variables you are sorting on, number the records, sort the file based on those two variables, and then resort the file back to its original order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time for doing such a task is extremely less than the time required to sort the entire file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what I don't know, is whether one can then use the new file to establish an index for the original file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll let you know what I find out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 23:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14471#M2317</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-14T23:39:14Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14472#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have an answer yet, but have been offered one option that might be a lead: the tagsort option on proc sort.&amp;nbsp; I'm skeptical as the documentation states that it might INCREASE processing time, but the description is doing what I was suggesting.&amp;nbsp; I don't have time to test it, but it might be worth a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14472#M2318</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14473#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; A good place to start when investigating such problems is the SAS Support site. Search using the key words PROC SORT PERFORMANCE and you will get many useful links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using SAS under Windows this might be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#n0ea63jfjic0vpn15dbdh2ee0xbb.htm"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#n0ea63jfjic0vpn15dbdh2ee0xbb.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14473#M2319</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-12-15T00:19:09Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14474#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I had already looked there.&amp;nbsp; Using tagsort, on my system at least, will reduce the cpu time from 2.6 seconds, to about 1.6 seconds.&amp;nbsp; However, only using the required variables, reduced the time to about 0.2 seconds.&amp;nbsp; What I'm looking for is a way to capitalize on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14474#M2320</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-15T00:23:10Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14475#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another alternate method is&amp;nbsp; Hash Table. But I am not sure how fast it will be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 06:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14475#M2321</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-15T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Proc Sort Options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14476#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i'll try options suggested by you all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 14:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sort-Options/m-p/14476#M2322</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-15T14:33:44Z</dc:date>
    </item>
  </channel>
</rss>

