<?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 How to do custom sort in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-custom-sort-in-SAS/m-p/70763#M20373</link>
    <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I have a variable Score which takes on values like :&lt;BR /&gt;
A+&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;BR /&gt;
D&lt;BR /&gt;
E&lt;BR /&gt;
U&lt;BR /&gt;
&lt;BR /&gt;
I wanted the sequence to remain the same as above, but for summarizing the data available in the dataset on that coloumn, I have to sort it and hence the sequence changes , A is always depicted over A+. I am sure there will be a way to custom sort it in the above order, however wasnt able to figure out myself.</description>
    <pubDate>Thu, 22 Jan 2009 10:34:20 GMT</pubDate>
    <dc:creator>tejeshwar</dc:creator>
    <dc:date>2009-01-22T10:34:20Z</dc:date>
    <item>
      <title>How to do custom sort in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-custom-sort-in-SAS/m-p/70763#M20373</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I have a variable Score which takes on values like :&lt;BR /&gt;
A+&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;BR /&gt;
D&lt;BR /&gt;
E&lt;BR /&gt;
U&lt;BR /&gt;
&lt;BR /&gt;
I wanted the sequence to remain the same as above, but for summarizing the data available in the dataset on that coloumn, I have to sort it and hence the sequence changes , A is always depicted over A+. I am sure there will be a way to custom sort it in the above order, however wasnt able to figure out myself.</description>
      <pubDate>Thu, 22 Jan 2009 10:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-custom-sort-in-SAS/m-p/70763#M20373</guid>
      <dc:creator>tejeshwar</dc:creator>
      <dc:date>2009-01-22T10:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do custom sort in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-custom-sort-in-SAS/m-p/70764#M20374</link>
      <description>For sorting the data, you could use a temporary sort column, where your A+ gets a lower value than A, or having A have larger value than A+.&lt;BR /&gt;
&lt;BR /&gt;
For summarization, if you use PROC MEANS/SUMMARY, you can specify ORDER=DATA on the CLASS statment, which will preserve the order from the procedure input.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 22 Jan 2009 10:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-custom-sort-in-SAS/m-p/70764#M20374</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-01-22T10:53:07Z</dc:date>
    </item>
  </channel>
</rss>

