SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 50784: SAS® data set headers might contain incorrect SORTED BY information

DetailsCodeHotfixAboutRate It

Incorrect SORTED BY information might be stored in the header of a SAS data set. Subsequent queries that use the incorrect information might result in incorrect results. This issue occurs when the following conditions exist in the SQL procedure query:

  • SELECT DISTINCT
  • GROUP BY that includes a subset of the variables that are part of the DISTINCT and the order of the variables differ

The SORTED BY information is set to match what is listed in the GROUP BY clause, whereas the actual sort order of the data is based on the order of the variables in the SELECT statement.

The only workaround is to break the query into multiple steps.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS2M39.4 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M3
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M3
Microsoft Windows XP 64-bit Edition9.2 TS2M3
Microsoft® Windows® for x649.2 TS2M39.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.2 TS2M3
Microsoft Windows Server 2003 for x649.2 TS2M3
Microsoft Windows Server 20089.2 TS2M3
Microsoft Windows Server 2008 R29.2 TS2M39.4 TS1M0
Microsoft Windows Server 2008 for x649.2 TS2M39.4 TS1M0
Microsoft Windows XP Professional9.2 TS2M3
Windows 7 Enterprise 32 bit9.2 TS2M3
Windows 7 Enterprise x649.2 TS2M39.4 TS1M0
Windows 7 Home Premium 32 bit9.2 TS2M3
Windows 7 Home Premium x649.2 TS2M3
Windows 7 Professional 32 bit9.2 TS2M3
Windows 7 Professional x649.2 TS2M39.4 TS1M0
Windows 7 Ultimate 32 bit9.2 TS2M3
Windows 7 Ultimate x649.2 TS2M3
Windows Vista9.2 TS2M3
Windows Vista for x649.2 TS2M3
64-bit Enabled AIX9.2 TS2M39.4 TS1M0
64-bit Enabled HP-UX9.2 TS2M39.4 TS1M0
64-bit Enabled Solaris9.2 TS2M39.4 TS1M0
HP-UX IPF9.2 TS2M39.4 TS1M0
Linux9.2 TS2M39.4 TS1M0
Linux for x649.2 TS2M39.4 TS1M0
OpenVMS on HP Integrity9.2 TS2M39.4 TS1M0
Solaris for x649.2 TS2M39.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.