SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 59356: Using a CASE WHEN clause with no ELSE clause generates incorrect results in SAS® Scalable Performance Data Server

DetailsCodeHotfixAboutRate It

When you use a CASE WHEN clause with no ELSE clause in your query, incorrect results are generated in the SAS SPD Server.

Click the Full Code tab in this SAS Note to see an example of code that demonstrates the incorrect results as reported in the following SAS log:

31   data _null_;
32     set xyz;
33     put _all_;
34   run;

a=1 b=one _ERROR_=0 _N_=1
a=1 b=one _ERROR_=0 _N_=2
a=2 b=one _ERROR_=0 _N_=3

NOTE: There were 3 observations read from the data set WORK.XYZ.

Note that when variable a is set to 2, variable b is incorrectly set to one and must be set to missing value.


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*
SPDSSAS Scalable Peformance Data ServerMicrosoft® Windows® for x645.15.1 HF79.4 TS1M0
Microsoft Windows Server 2012 R2 Datacenter5.15.1 HF79.4 TS1M0
Microsoft Windows Server 2012 R2 Std5.15.1 HF79.4 TS1M0
Windows 7 Enterprise x645.15.1 HF79.4 TS1M0
64-bit Enabled AIX5.15.1 HF79.4 TS1M0
64-bit Enabled Solaris5.15.1 HF79.4 TS1M0
HP-UX IPF5.15.1 HF79.4 TS1M0
Linux for x645.15.1 HF79.4 TS1M0
Solaris for x645.15.1 HF79.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.