Problem Note 4576: IN operator in PROC SQL sometimes gives incorrect results
Using the IN operator in PROC SQL may produce incorrect results. The
problem occurs in the later passes of code generation optimization.
For the problem to occur, the numerics being compared must be defined
with less than the default 8 bytes.
The following code illustrates the problem on OS/390. The problem
exists on other systems, but may require differences in the code to
generate.
data work.a;
length code 3;
input code;
cards;
1
4
;
proc sql;
select code in (2,4)
from work.a;
quit;
The problem occurs in Versions 7 and 8, TSLEVELS P1 and M0
respectively, and Releases 8.1 and 8.2, TSLEVELS 1M0 and 2M0,
on all platforms.
A Technical Support hot fix for Release 8.1 TSLEVEL TS1M0 for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/81_sbcs_prod_list.html#004576
A Technical Support hot fix for Release 8.2 TSLEVEL TS2M0 for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#004576
For customers running SAS with Asian Language Support (DBCS), this
hot fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/82_dbcs_prod_list.html#004576
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows 95/98 | 8 TS M0 | |
| Microsoft Windows 2000 Server | 8 TS M0 | 9 |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | 9 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 9 |
| OpenVMS VAX | 8 TS M0 | |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | 9 |
| Solaris | 8 TS M0 | |
| 64-bit Enabled Solaris | 8 TS M0 | |
| IRIX | 8 TS M0 | |
| OS/2 | 8 TS M0 | |
| z/OS | 8 TS M0 | 9 |
| ABI+ for Intel Architecture | 8 TS M0 | |
| Linux | 8.2 TS2M0 | 9 |
| HP-UX | 8 TS M0 | |
| 64-bit Enabled HP-UX | 8 TS M0 | |
| CMS | 8 TS M0 | |
| OpenVMS Alpha | 8 TS M0 | 9 |
| 64-bit Enabled AIX | 8 TS M0 | |
| Microsoft Windows NT Workstation | 8 TS M0 | 9 |
| Tru64 UNIX | 8 TS M0 | 9 |
| AIX | 8 TS M0 | |
*
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 |
| Topic: | SAS Reference ==> Procedures ==> SQL SAS Reference ==> SQL
|
| Date Modified: | 2002-04-23 16:28:02 |
| Date Created: | 2001-03-22 16:39:10 |