<?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: Data Step By Statement Sorting Failure in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438967#M109492</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/63114"&gt;@KaiBasch&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes, that's obvious from the log but if you read my 2nd sentence you would see that I've sorted the data (using Proc Sort), it is sorted.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post your full code and log. Obviously SAS doesn't think the data set is sorted for some reason.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 15:46:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-21T15:46:49Z</dc:date>
    <item>
      <title>Data Step By Statement Sorting Failure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438932#M109475</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to sort a column which has records like 'AA0276', 'A2B5Q', 'AB8ER', ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I sort the data, I'm running a data step and use the sorted column in a by statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data step returns a ERROR which indicates that the &lt;EM&gt;by variable&lt;/EM&gt; couldn't sorted for the values like&amp;nbsp;&lt;SPAN&gt;'AA0276' which have two consequent character values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Error: BY variables are not properly sorted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I fix this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438932#M109475</guid>
      <dc:creator>KaiBasch</dc:creator>
      <dc:date>2018-02-21T14:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step By Statement Sorting Failure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438935#M109476</link>
      <description>&lt;P&gt;If SAS says that your data is not sorted by that variable, it is not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post some sample data and your code.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438935#M109476</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-21T14:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step By Statement Sorting Failure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438939#M109478</link>
      <description>&lt;P&gt;Yes, that's obvious from the log but if you read my 2nd sentence you would see that I've sorted the data (using Proc Sort), it is sorted.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438939#M109478</guid>
      <dc:creator>KaiBasch</dc:creator>
      <dc:date>2018-02-21T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step By Statement Sorting Failure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438940#M109479</link>
      <description>&lt;P&gt;You'll have to post the log.&amp;nbsp; I can think of several possibilities, but I'm not about to explain them all in detail just in case one of them matches the situation you are encountering.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438940#M109479</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-21T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step By Statement Sorting Failure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438967#M109492</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/63114"&gt;@KaiBasch&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes, that's obvious from the log but if you read my 2nd sentence you would see that I've sorted the data (using Proc Sort), it is sorted.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post your full code and log. Obviously SAS doesn't think the data set is sorted for some reason.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-By-Statement-Sorting-Failure/m-p/438967#M109492</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-21T15:46:49Z</dc:date>
    </item>
  </channel>
</rss>

