<?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: Efficiency of sorting by character variables vs.  numeric variables ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64637#M18367</link>
    <description>I will choose first.</description>
    <pubDate>Fri, 13 May 2011 09:43:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-05-13T09:43:13Z</dc:date>
    <item>
      <title>Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64630#M18360</link>
      <description>Hi ,&lt;BR /&gt;
Is there a major difference in sorting by character variables vs. numeric variables? &lt;BR /&gt;
&lt;BR /&gt;
Scenario. &lt;BR /&gt;
1. Dataset having three numeric variables key1, key2 , key3&lt;BR /&gt;
using "by key1 key2 key3"&lt;BR /&gt;
&lt;BR /&gt;
2. Dataset having a concatenated variables of the three keys— big_key (key1-key2-key3) e.g. "23-34-56"; &lt;BR /&gt;
then using "by big_key";&lt;BR /&gt;
&lt;BR /&gt;
Is there a performance difference ?&lt;BR /&gt;
(Dataset contains around 1mil. records. )&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 11 May 2011 08:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64630#M18360</guid>
      <dc:creator>kansas</dc:creator>
      <dc:date>2011-05-11T08:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64631#M18361</link>
      <description>Not sure, if it is created just for this sort, it sounds like an unnecessary variable that just makes your big data set even bigger.</description>
      <pubDate>Wed, 11 May 2011 10:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64631#M18361</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-05-11T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64632#M18362</link>
      <description>I prefer to use 2 because it is faster.&lt;BR /&gt;
Opps,I should point out that these two way is different.&lt;BR /&gt;
Maybe you need to make some code to see how different they are.&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Wed, 11 May 2011 10:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64632#M18362</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-11T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64633#M18363</link>
      <description>ok. i shall re-phrase my question&lt;BR /&gt;
&lt;BR /&gt;
i have a huge dataset with three key variables.&lt;BR /&gt;
key1 key2 key3.&lt;BR /&gt;
I need to sort by these three variables( mentioning all in the by statement)&lt;BR /&gt;
&lt;BR /&gt;
whats the fastest way to sort.&lt;BR /&gt;
1. using three numeric variables in the by statement&lt;BR /&gt;
2. concatenate three variables and create a character variable. Then sorting by the character variable?</description>
      <pubDate>Wed, 11 May 2011 11:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64633#M18363</guid>
      <dc:creator>kansas</dc:creator>
      <dc:date>2011-05-11T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64634#M18364</link>
      <description>Honestly, why don't you simply try a self-initiated experiment and report the results back to the forum.  &lt;BR /&gt;
&lt;BR /&gt;
Take a subset of your "huge" input data file and do a few sorts with different techniques.&lt;BR /&gt;
&lt;BR /&gt;
Add OPTIONS like FULLSTIMER and also consider SORT options like EQUALS/NOEQUALS for performance consideration.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 11 May 2011 15:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64634#M18364</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-11T15:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64635#M18365</link>
      <description>actually i tried. And couldn't find any significant performance difference. &lt;BR /&gt;
But there should be some theoretical evidence using which we can conclude whats the optimal.&lt;BR /&gt;
&lt;BR /&gt;
Thanks

Message was edited by: kansas</description>
      <pubDate>Wed, 11 May 2011 15:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64635#M18365</guid>
      <dc:creator>kansas</dc:creator>
      <dc:date>2011-05-11T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64636#M18366</link>
      <description>The TAGSORT option might be something to investigate for improving performance of sorts on large sets.</description>
      <pubDate>Thu, 12 May 2011 16:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64636#M18366</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-05-12T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of sorting by character variables vs.  numeric variables ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64637#M18367</link>
      <description>I will choose first.</description>
      <pubDate>Fri, 13 May 2011 09:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Efficiency-of-sorting-by-character-variables-vs-numeric/m-p/64637#M18367</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-13T09:43:13Z</dc:date>
    </item>
  </channel>
</rss>

