<?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: Specify order of data within a column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55971#M5867</link>
    <description>All of Doc's suggestions are right on the money. The lazy person's solution would be to recode the column so the values are:&lt;BR /&gt;
&lt;BR /&gt;
1 - X&lt;BR /&gt;
2 - Z&lt;BR /&gt;
3 - Y&lt;BR /&gt;
4 - W&lt;BR /&gt;
&lt;BR /&gt;
If this is acceptable, it's definitely a simple solution (and one I've used many, many times). If you MUST have the values stay X, Y, W, Z; I would recommend Doc's approach of recording the values similar to above (1 - X, 2 - Z,...) and creating a custom format that causes 1 - X to display as X. If you then order by the Unformatted values, you're good to go. As Doc mentions, this trick will not necessarily works in every possible situation, though it works in most of them.</description>
    <pubDate>Fri, 30 Jul 2010 14:52:12 GMT</pubDate>
    <dc:creator>RichardH_sas</dc:creator>
    <dc:date>2010-07-30T14:52:12Z</dc:date>
    <item>
      <title>Specify order of data within a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55969#M5865</link>
      <description>Hello all:&lt;BR /&gt;
&lt;BR /&gt;
I am attempting to find a way to specify the order of data within a column when the order is not simply ascending/descending. For example my dataset will have&lt;BR /&gt;
&lt;BR /&gt;
COLUMN HEADER&lt;BR /&gt;
W&lt;BR /&gt;
X&lt;BR /&gt;
Y&lt;BR /&gt;
Z&lt;BR /&gt;
&lt;BR /&gt;
But in my output I need the order to be&lt;BR /&gt;
&lt;BR /&gt;
COLUMN HEADER&lt;BR /&gt;
X&lt;BR /&gt;
Z&lt;BR /&gt;
Y&lt;BR /&gt;
W&lt;BR /&gt;
&lt;BR /&gt;
i.e. not alphabetical or reversed-alphabetical order, but a specific one. I can preserve the order of the data after running a List Report, but I have been unable to run a filter (or whatever the process is) to get the data into the correct order before a Report step.&lt;BR /&gt;
&lt;BR /&gt;
If anyone has any thoughts or suggestions, I’d appreciate them.&lt;BR /&gt;
-Steven</description>
      <pubDate>Tue, 27 Jul 2010 14:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55969#M5865</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-27T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Specify order of data within a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55970#M5866</link>
      <description>Add a column that represents sort order and then do the appropriate transformations/data entry to allow you to do an ascending or descending sort.&lt;BR /&gt;
&lt;BR /&gt;
Depending on the procedures that you are using, you may be able to do this with a format (some procedures will display in the formatted order).</description>
      <pubDate>Tue, 27 Jul 2010 16:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55970#M5866</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-07-27T16:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Specify order of data within a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55971#M5867</link>
      <description>All of Doc's suggestions are right on the money. The lazy person's solution would be to recode the column so the values are:&lt;BR /&gt;
&lt;BR /&gt;
1 - X&lt;BR /&gt;
2 - Z&lt;BR /&gt;
3 - Y&lt;BR /&gt;
4 - W&lt;BR /&gt;
&lt;BR /&gt;
If this is acceptable, it's definitely a simple solution (and one I've used many, many times). If you MUST have the values stay X, Y, W, Z; I would recommend Doc's approach of recording the values similar to above (1 - X, 2 - Z,...) and creating a custom format that causes 1 - X to display as X. If you then order by the Unformatted values, you're good to go. As Doc mentions, this trick will not necessarily works in every possible situation, though it works in most of them.</description>
      <pubDate>Fri, 30 Jul 2010 14:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Specify-order-of-data-within-a-column/m-p/55971#M5867</guid>
      <dc:creator>RichardH_sas</dc:creator>
      <dc:date>2010-07-30T14:52:12Z</dc:date>
    </item>
  </channel>
</rss>

