SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54751: The BETWEEN operator might re-order values, possibly leading to unexpected results in a linguistic-sensitive environment

DetailsHotfixAboutRate It

The BETWEEN operator orders values based on their binary values, so that VAL1 < VAL2. Here is an example:

   proc sql;
     select * FROM dblib.table
      where column between "z" AND "a";

The values are re-ordered so that the WHERE clause becomes this:

      where column between "a" AND "z";

This re-ordering might lead to unexpected results when you query a table located in a foreign database, such as DB2, if the strings contain locale-sensitive values.

Click the Hot Fix tab in this note to access the hot fix for this issue.

After you install the hot fix, you might encounter two issues. For more information, see SAS Note 61621: "Performance issues or an ORA-01841 error might occur when querying a DBMS table."



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.3 TS1M29.4 TS1M3
Z649.3 TS1M29.4 TS1M3
Microsoft® Windows® for x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows Server 20089.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std9.3 TS1M29.4 TS1M3
Windows 7 Enterprise 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Enterprise x649.3 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Home Premium x649.3 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Professional x649.3 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Ultimate x649.3 TS1M29.4 TS1M3
64-bit Enabled AIX9.3 TS1M29.4 TS1M3
64-bit Enabled HP-UX9.3 TS1M29.4 TS1M3
64-bit Enabled Solaris9.3 TS1M29.4 TS1M3
HP-UX IPF9.3 TS1M29.4 TS1M3
Linux9.3 TS1M29.4 TS1M3
Linux for x649.3 TS1M29.4 TS1M3
Solaris for x649.3 TS1M29.4 TS1M3
* 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.