SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 34460: Incorrect results might be returned when the COUNT(DISTINCT) function is used in the SQL procedure

DetailsHotfixAboutRate It

In SAS® 9.2, you might receive incorrect results if you use the COUNT(DISTINCT variable-name) function in an SQL procedure similar to the following:

proc sql; select count(distinct variable-name) as cnt from ds1; quit;

This error normally occurs when the data set contains more than five million rows. In addition, the results that are generated might differ each time the code is run.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS1M09.2 TS2M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft Windows XP 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft® Windows® for x649.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M09.2 TS2M0
Microsoft Windows XP Professional9.2 TS1M09.2 TS2M0
Windows Vista9.2 TS1M09.2 TS2M0
64-bit Enabled AIX9.2 TS1M09.2 TS2M0
64-bit Enabled HP-UX9.2 TS1M09.2 TS2M0
64-bit Enabled Solaris9.2 TS1M09.2 TS2M0
HP-UX IPF9.2 TS1M09.2 TS2M0
Linux9.2 TS1M09.2 TS2M0
Linux for x649.2 TS1M09.2 TS2M0
OpenVMS on HP Integrity9.2 TS1M09.2 TS2M0
Solaris for x649.2 TS1M09.2 TS2M0
* 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.