<?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: Change collation order in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62117#M17653</link>
    <description>Another way, would be to create a format (with the desired ordered values, then perform a formatted sort through SQL.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table b as select * from a order by put(a, $myformat.);&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
More about creating SAS formats here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473464.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473464.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
    <pubDate>Thu, 06 Aug 2009 16:58:08 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2009-08-06T16:58:08Z</dc:date>
    <item>
      <title>Change collation order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62115#M17651</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
in my output-table i would like to order my value-names like i want (i.e. i have a frequency-table and the values "yes" , "no", "no answer" and "missings"). if i sort these values i get an output like that:&lt;BR /&gt;
&lt;BR /&gt;
missings:      10&lt;BR /&gt;
no:                266&lt;BR /&gt;
no answer:     70&lt;BR /&gt;
yes:               599&lt;BR /&gt;
&lt;BR /&gt;
but i would like to have a table like that:&lt;BR /&gt;
&lt;BR /&gt;
no:                266&lt;BR /&gt;
yes:              599&lt;BR /&gt;
no answer:    70&lt;BR /&gt;
missings:      10 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
any idea how i can sort my table output that way??&lt;BR /&gt;
&lt;BR /&gt;
thank you in advance, marie</description>
      <pubDate>Thu, 06 Aug 2009 13:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62115#M17651</guid>
      <dc:creator>marieK</dc:creator>
      <dc:date>2009-08-06T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change collation order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62116#M17652</link>
      <description>Create a surogate sort variable such that &lt;BR /&gt;
4  :  missings&lt;BR /&gt;
1  :  no&lt;BR /&gt;
3  :  no answer&lt;BR /&gt;
2  :  yes&lt;BR /&gt;
&lt;BR /&gt;
Sort on that var, but do not diaplay it.</description>
      <pubDate>Thu, 06 Aug 2009 14:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62116#M17652</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-08-06T14:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change collation order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62117#M17653</link>
      <description>Another way, would be to create a format (with the desired ordered values, then perform a formatted sort through SQL.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table b as select * from a order by put(a, $myformat.);&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
More about creating SAS formats here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473464.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473464.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Thu, 06 Aug 2009 16:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62117#M17653</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-08-06T16:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change collation order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62118#M17654</link>
      <description>Thank u very much for your answers!! I'll try it out!&lt;BR /&gt;
&lt;BR /&gt;
cheers marie</description>
      <pubDate>Fri, 07 Aug 2009 06:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-collation-order/m-p/62118#M17654</guid>
      <dc:creator>marieK</dc:creator>
      <dc:date>2009-08-07T06:44:19Z</dc:date>
    </item>
  </channel>
</rss>

