![]() | ![]() | ![]() | ![]() | ![]() |
When you subset a relational database management system (DBMS) table by a date variable, incorrect results might occur. The problem occurs when the following conditions are true:
The following example code illustrates a WHERE statement that produces incorrect results:
There are two workarounds. One is to use the IS NULL operator rather than a SAS missing value, as shown below:
The second workaround is to use a SAS date constant, as shown below:
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | Tru64 UNIX | 9.1 TS1M3 SP4 | 9.4 TS1M5 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
Linux on Itanium | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
Linux for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
Linux | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
HP-UX IPF | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
Windows Vista for x64 | 9.1 TS1M3 SP4 | |||
Windows Vista | 9.1 TS1M3 SP4 | |||
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |||
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M5 | ||
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |||
z/OS | 9.1 TS1M3 SP4 | 9.4 TS1M5 |