Problem Note 50827: When you use the COUNT(distinct x) function in the SQL procedure, incorrect counts might be returned
Using the COUNT(distinct x) function in PROC SQL might return incorrect distinct counts for the column. The counts might also vary if the query is executed multiple times against the same data.
There is no workaround for the incorrect counts using PROC SQL.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
OpenVMS on HP Integrity | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Linux for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Linux | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
HP-UX IPF | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
64-bit Enabled Solaris | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
64-bit Enabled HP-UX | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
64-bit Enabled AIX | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows Vista for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows Vista | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Ultimate x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Ultimate 32 bit | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Professional x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Professional 32 bit | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Home Premium x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Home Premium 32 bit | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Enterprise x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Windows 7 Enterprise 32 bit | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows XP Professional | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 R2 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft® Windows® for x64 | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows XP 64-bit Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
z/OS | 9.21_M2 | 9.3_M2 | 9.2 TS2M2 | 9.3 TS1M2 |
*
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.
Type: | Problem Note |
Priority: | alert |
Date Modified: | 2014-10-17 11:51:45 |
Date Created: | 2013-08-22 09:35:34 |