Problem Note 4659: DATA step view containing Boolean comparisons can return incorrect
results
In a DATA step view in Version 8, using certain Boolean numeric
expressions, can cause incorrect results. The problem appears when
the results of a Boolean comparison are assigned to a variable, and
the next run time statement is a Boolean comparison. The following
code demonstrates the problem.
DATA VW/VIEW=VW;
X = 6;
Y = X > 5;
IF Z THEN W=10;
*IF Z > 0 THEN W=10;
PUT W= X= Y= Z=;
RUN;
DATA _NULL_;
SET VW;
RUN;
Using the two different forms of the "IF Z..." condition generate
different results.
To circumvent the problem, use the second form of the "IF Z..." test,
i.e. the one that is commented out in the above code.
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#004659
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows 2000 Server | 8 TS M1 | 8.2 TS2M0 |
| Microsoft Windows 95/98 | 8 TS M1 | 8.2 TS2M0 |
| Microsoft Windows 2000 Professional | 8 TS M1 | 8.2 TS2M0 |
| Microsoft Windows 2000 Advanced Server | 8 TS M1 | 8.2 TS2M0 |
| Microsoft Windows 2000 Datacenter Server | 8 TS M1 | 8.2 TS2M0 |
| OpenVMS VAX | 8 TS M1 | 8.2 TS2M0 |
| Solaris | 8 TS M1 | 8.2 TS2M0 |
| OS/2 | 8 TS M1 | 8.2 TS2M0 |
| 64-bit Enabled Solaris | 8 TS M1 | 8.2 TS2M0 |
| IRIX | 8 TS M1 | 8.2 TS2M0 |
| z/OS | 8 TS M1 | 8.2 TS2M0 |
| ABI+ for Intel Architecture | 8 TS M1 | 8.2 TS2M0 |
| CMS | 8 TS M1 | 8.2 TS2M0 |
| HP-UX | 8 TS M1 | 8.2 TS2M0 |
| 64-bit Enabled HP-UX | 8 TS M1 | 8.2 TS2M0 |
| OpenVMS Alpha | 8 TS M1 | 8.2 TS2M0 |
| 64-bit Enabled AIX | 8 TS M1 | 8.2 TS2M0 |
| Microsoft Windows NT Workstation | 8 TS M1 | 8.2 TS2M0 |
| Tru64 UNIX | 8 TS M1 | 8.2 TS2M0 |
| AIX | 8 TS M1 | 8.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.
| Type: | Problem Note |
| Priority: | alert |
| Date Modified: | 2002-06-25 12:19:09 |
| Date Created: | 2001-04-03 15:45:38 |