<?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: SORTING in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178386#M45566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to acheive this in PROC REPORT...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 21:01:52 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-12-19T21:01:52Z</dc:date>
    <item>
      <title>SORTING</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178383#M45563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when we have a charecter variable which has values like shown below:&lt;/P&gt;&lt;P&gt;0,1,2,3,4, MISSING(word)&lt;/P&gt;&lt;P&gt;HOW DOES IT SORT??????&lt;/P&gt;&lt;P&gt;i am getting the followwing order:&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;MISSING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way we can do :&lt;/P&gt;&lt;P&gt;MISSING&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 19:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178383#M45563</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-12-19T19:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: SORTING</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178384#M45564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What technique are you using to perform the sort? PROC SORT? PROC SQL? Something else? What platform are you running SAS on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 20:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178384#M45564</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-12-19T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: SORTING</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178385#M45565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can specify a COLLATING SEQUENCE in proc sort that would do that. But you will have to make it.&lt;/P&gt;&lt;P&gt;Or a translation table Proc Trantab gets you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I wouldn't have made them character if I wan'ted them to sort that way as Missing, as a numeric, comes first, especially if all the values concerned except MISSING are number values. Then us a FORMAT to display the text if that's important.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 20:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178385#M45565</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-19T20:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: SORTING</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178386#M45566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to acheive this in PROC REPORT...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 21:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178386#M45566</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-12-19T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: SORTING</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178387#M45567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The quickest way would be to recode the variable to numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 23:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SORTING/m-p/178387#M45567</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-12-19T23:47:28Z</dc:date>
    </item>
  </channel>
</rss>

