SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54648: Including the LENGTH= modifier in an SQL query might result in incorrect results

DetailsHotfixAboutRate It

In BASE SAS® software, incorrect results might occur when you run an SQL procedure query and the following conditions exist:

  • A view is created where a variable is renamed
  • A second view is created where the first view is joined with a table and the renamed variable is selected with a LENGTH= column modifier
  • A query references the second view and it contains a WHERE clause that is subsetting on the renamed variable
  • Any of the following hot fixes have been applied: I22068, I22078, I22079, I22096, or I22104

The only workaround is to change the code such that one of the conditions does not exist.

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



Operating System and Release Information

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