Problem Note 41011: Use of HAVING clause with SQL GROUP BY may return incorrect results
A parallel GROUP BY clause can generate incorrect results for
variables with non-standard length columns if a HAVING clause is used.
The following code illustrates a case that can produce incorrect results in columns YEAR and SUM(PAY_MTS):
libname foo sasspds 'public' server=hostname.5400 user='anonymous'
ip=yes libgen=yes;
data foo.mytest;
length year 3 abc 3 paid $1 chargeable $1 pay_mts 8;
input year abc paid $ chargeable $ pay_mts;
cards;
2010 100 y n 200
;
run;
proc sql;
select distinct abc, chargeable, paid, year, sum(pay_mts)
from foo.mytest
group by abc, chargeable, paid, year having count(*) gt 0;
quit;
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
| SPDS | Scalable Performance Data Server | Microsoft Windows 2000 Advanced Server | 4.52 | 4.53 | | |
| Microsoft Windows 2000 Datacenter Server | 4.52 | 4.53 | | |
| Microsoft Windows 2000 Server | 4.52 | 4.53 | | |
| Microsoft Windows 2000 Professional | 4.52 | 4.53 | | |
| Microsoft Windows Server 2003 Datacenter Edition | 4.52 | 4.53 | | |
| Microsoft Windows Server 2003 Enterprise Edition | 4.52 | 4.53 | | |
| Microsoft Windows Server 2003 Standard Edition | 4.52 | 4.53 | | |
| Microsoft Windows Server 2008 | 4.52 | 4.53 | | |
| Microsoft Windows XP Professional | 4.52 | 4.53 | | |
| 64-bit Enabled AIX | 4.52 | 4.53 | | |
| 64-bit Enabled HP-UX | 4.52 | 4.53 | | |
| 64-bit Enabled Solaris | 4.52 | 4.53 | | |
| HP-UX IPF | 4.52 | 4.53 | | |
| Linux for x64 | 4.52 | 4.53 | | |
| Solaris for x64 | 4.52 | 4.53 | | |
*
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: | 2010-09-29 18:21:14 |
| Date Created: | 2010-09-24 12:31:42 |