<?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: SAS Proc and sorting options in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78895#M22752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot again Art. That works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2012 18:56:04 GMT</pubDate>
    <dc:creator>Paul_NYS</dc:creator>
    <dc:date>2012-11-23T18:56:04Z</dc:date>
    <item>
      <title>SAS Proc and sorting options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78891#M22748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using Proc Sort to sort a data set with a specific variable which is a alpha variable. I know the two standard sort options are ascending and descending (and don't see any others), but is there another option for custom sorting by the values in a variable/column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values I am trying to sort are (ascend/desc do not order correctly):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1 to 5&lt;/P&gt;&lt;P&gt;6 - 12&lt;/P&gt;&lt;P&gt;13 to 17&lt;/P&gt;&lt;P&gt;18 +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 14:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78891#M22748</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2012-11-23T14:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc and sorting options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78892#M22749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, I think you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input column1 $ &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1 to 5&lt;/P&gt;&lt;P&gt;6 - 12&lt;/P&gt;&lt;P&gt;13 to 17&lt;/P&gt;&lt;P&gt;18 +&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have SORTSEQ=LINGUISTIC(NUMERIC_COLLATION=ON);&lt;/P&gt;&lt;P&gt;&amp;nbsp; by Column1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 15:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78892#M22749</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-23T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc and sorting options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78893#M22750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you always want to sort this column according to numeric value, I think it would be wise to concert the column to numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 15:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78893#M22750</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-11-23T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc and sorting options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78894#M22751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="119192" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; makes a good point.&amp;nbsp; If you just store the raw numeric data, you can create and apply a format with the values in your post.&amp;nbsp; If you are summarising the data using any of the usual SAS procs, they will automatically group by the formatted values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 16:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78894#M22751</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-11-23T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc and sorting options</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78895#M22752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot again Art. That works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 18:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Proc-and-sorting-options/m-p/78895#M22752</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2012-11-23T18:56:04Z</dc:date>
    </item>
  </channel>
</rss>

