Problem Note 56977: An incorrect query might be passed to a database when a CASE expression is used in a WHERE clause
 
An incomplete CASE expression might be submitted to a database when the query contains a CASE expression in the WHERE clause and the query contains one or more of the following: 
- DISTINCT operator
 
- ORDER BY clause
 
- join of 2 or more database tables referenced by the same libref
 
- summary function
 
- GROUP BY clause
 
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
| SAS System | Base SAS | HP-UX IPF | 9.4 TS1M0 |  | 
| Linux for x64 | 9.4 TS1M0 |  | 
| 64-bit Enabled Solaris | 9.4 TS1M0 |  | 
| 64-bit Enabled HP-UX | 9.4 TS1M0 |  | 
| Windows 7 Professional x64 | 9.4 TS1M0 |  | 
| 64-bit Enabled AIX | 9.4 TS1M0 |  | 
| Windows 7 Enterprise x64 | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2012 Std | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 |  | 
| Microsoft Windows Server 2008 R2 | 9.4 TS1M0 |  | 
| Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 |  | 
| Microsoft Windows 8.1 Pro | 9.4 TS1M0 |  | 
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 |  | 
| Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 |  | 
| Microsoft Windows 8 Pro x64 | 9.4 TS1M0 |  | 
| Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 |  | 
| Microsoft® Windows® for x64 | 9.4 TS1M0 |  | 
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M0 |  | 
| z/OS | 9.4 TS1M0 |  | 
| z/OS 64-bit | 9.4 TS1M0 |  | 
| Solaris for x64 | 9.4 TS1M0 |  | 
*
        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: | high | 
| Date Modified: | 2015-12-15 12:34:18 | 
| Date Created: | 2015-11-01 14:43:49 |