<?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 Sorting columns individually in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147232#M38992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Can you sort a field in a dataset without affecting the order of other fields. Or can you sort multiple fields of a data set independently from each other?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 19:29:51 GMT</pubDate>
    <dc:creator>brophymj</dc:creator>
    <dc:date>2014-06-18T19:29:51Z</dc:date>
    <item>
      <title>Sorting columns individually</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147232#M38992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Can you sort a field in a dataset without affecting the order of other fields. Or can you sort multiple fields of a data set independently from each other?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147232#M38992</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-06-18T19:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting columns individually</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147233#M38993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't, but you can cheat. But Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=sashelp.class &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=temp(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=age);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; age;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;'class' was sorted by 'name', now the 'age' is also sorted .&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147233#M38993</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-06-18T19:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting columns individually</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147234#M38994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorting usually describes changing the order of data rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your questions correctly, they are about changing the order columns/fields within a table - please confirm. If you want to change the order of a field where would you want to place it? First? Last? The 10th field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of what you want would be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147234#M38994</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-06-18T19:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting columns individually</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147235#M38995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorting in SAS usually refers to changing the order of the rows.&amp;nbsp; The entire row moves as a unit.&amp;nbsp; However ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested in changing the values of some of the fields within a single row, you can do that without affecting other fields within the same row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;call sortn (hand1, hand2, flop1, flop2, flop3, river, turn);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SORTN if&amp;nbsp; your variables are numeric, or use SORTC if your variables are character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147235#M38995</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-06-18T19:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting columns individually</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147236#M38996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 15:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sorting-columns-individually/m-p/147236#M38996</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2014-06-19T15:31:32Z</dc:date>
    </item>
  </channel>
</rss>

