<?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: BY variables are not properly sorted on data set WORK.data even though it is sorted in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595283#M171221</link>
    <description>&lt;P&gt;Can you post your code please?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 07:34:24 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-10-10T07:34:24Z</dc:date>
    <item>
      <title>BY variables are not properly sorted on data set WORK.data even though it is sorted</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595277#M171217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Iam getting below error,even though the data is sorted on id column.please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: BY variables are not properly sorted on data set WORK.data.
a=1 b=1 DATE1=31OCT2007 end_date=. date3=01OCT1941 date4=01MAR2013
reward=0.00 Amt=. amt1=1,614.00 amt2=941.50
date5=01AUG1990 date6=01MAR2013 ID=6GK ID=VWD ID1=345
78                                                         The SAS System                           11:11 Wednesday, October 9, 2019

Code=  Num=cccc 
STATUS=  FIRST.ID=1 LAST.ID=1 _ERROR_=1 _N_=9661
NOTE: The SAS System stopped processing this step because of errors.
NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.
NOTE: There were 9662 observations read from the data set WORK.DATA.
NOTE: There were 3 observations read from the data set WORK.data.
WARNING: The data set WORK.W5V may be incomplete.  When this step was stopped there were 9660 observations and 80 variables.
NOTE: Compressing data set WORK.W5V decreased size by 68.60 percent. 
      Compressed is 76 pages; un-compressed would require 242 pages.
NOTE: DATA statement used (Total process time):
      real time           0.07 seconds
      cpu time            0.04 seconds
      &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595277#M171217</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-10-10T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: BY variables are not properly sorted on data set WORK.data even though it is sorted</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595280#M171218</link>
      <description>&lt;P&gt;How do you know that the data is sorted by ID?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595280#M171218</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-10T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: BY variables are not properly sorted on data set WORK.data even though it is sorted</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595282#M171220</link>
      <description>&lt;P&gt;Iam using sort transformation to sort the data based on ID column please and sort was running fine please,kindly help&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595282#M171220</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-10-10T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: BY variables are not properly sorted on data set WORK.data even though it is sorted</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595283#M171221</link>
      <description>&lt;P&gt;Can you post your code please?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 07:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595283#M171221</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-10T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: BY variables are not properly sorted on data set WORK.data even though it is sorted</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595285#M171223</link>
      <description>&lt;P&gt;Did you make sure BOTH datasets are sorted?&lt;/P&gt;
&lt;P&gt;Run a proc contents on both of the datasets.&lt;/P&gt;
&lt;P&gt;If in doubt, a simple data step with by will check if a dataset is correctly sorted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint:&lt;/P&gt;
&lt;P&gt;when you anonymize a log, don't use just "data". Make sure we can see where the log was redacted by using something like XXXXXXX or REDACTED or similar.&lt;/P&gt;
&lt;P&gt;In SAS logs, you won't find a lowercase dataset name.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 08:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-variables-are-not-properly-sorted-on-data-set-WORK-data-even/m-p/595285#M171223</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-10T08:04:35Z</dc:date>
    </item>
  </channel>
</rss>

