SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 62204: Incorrect SQL code is generated when you use a missing (null) value in combination with a logical OR in a Select node

DetailsHotfixAboutRate It

When you use a Select node in SAS® Customer Intelligence, the expression uses a missing value and a logical OR operator, as follows:

However, the SQL code that is generated by the expression does not contain the missing values in the WHERE clause, as it should.

SELECT table0.CLIENTNUM AS CLIENTNUM LABEL='CLIENTNUM' FORMAT=F12.0
       FROM ORADM.CLIENTS table0
       WHERE table0.PSTCDAREA='AA'

To work around this problem, do not use the logical OR operator. Instead, select the value (in this case, AA) and (MISSING) at the same time, as shown below:

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



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Marketing AutomationMicrosoft® Windows® for x646.56.69.4 TS1M39.4 TS1M6
64-bit Enabled AIX6.56.69.4 TS1M39.4 TS1M6
64-bit Enabled Solaris6.56.69.4 TS1M39.4 TS1M6
HP-UX IPF6.56.69.4 TS1M39.4 TS1M6
Linux for x646.56.69.4 TS1M39.4 TS1M6
Solaris for x646.56.69.4 TS1M39.4 TS1M6
* 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.