When you use the SQL procedure to join multiple database management set (DBMS) tables that use the same libref, incorrect results might occur. This issue can occur when all of the following are true:
When all of these conditions exist, the generated code will include a WHERE clause that compares the wrong variables. This is what is passed to the DBMS:
The only workaround is to create a table rather than the second view.
SAS System | Base SAS | Aster Data nCluster on Linux x64 | 9.3 TS1M2 | |
DB2 Universal Database on AIX | 9.3 TS1M2 | |
DB2 Universal Database on Linux x64 | 9.3 TS1M2 | |
Greenplum on Linux x64 | 9.3 TS1M2 | |
Netezza TwinFin 32bit blade | 9.3 TS1M2 | |
Netezza TwinFin 32-bit SMP Hosts | 9.3 TS1M2 | |
Netezza TwinFin 64-bit S-Blades | 9.3 TS1M2 | |
Netezza TwinFin 64-bit SMP Hosts | 9.3 TS1M2 | |
Teradata on Linux | 9.3 TS1M2 | |
z/OS | 9.3 TS1M2 | |
Z64 | 9.3 TS1M2 | |
Microsoft® Windows® for x64 | 9.3 TS1M2 | |
Microsoft Windows 8 Enterprise 32-bit | 9.3 TS1M2 | |
Microsoft Windows 8 Enterprise x64 | 9.3 TS1M2 | |
Microsoft Windows 8 Pro 32-bit | 9.3 TS1M2 | |
Microsoft Windows 8 Pro x64 | 9.3 TS1M2 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 TS1M2 | |
Microsoft Windows 8.1 Enterprise x64 | 9.3 TS1M2 | |
Microsoft Windows 8.1 Pro | 9.3 TS1M2 | |
Microsoft Windows 8.1 Pro 32-bit | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 R2 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2012 Datacenter | 9.3 TS1M2 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.3 TS1M2 | |
Microsoft Windows Server 2012 R2 Std | 9.3 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.3 TS1M2 | |
Microsoft Windows XP Professional | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | |
Windows 7 Enterprise x64 | 9.3 TS1M2 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | |
Windows 7 Home Premium x64 | 9.3 TS1M2 | |
Windows 7 Professional 32 bit | 9.3 TS1M2 | |
Windows 7 Professional x64 | 9.3 TS1M2 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | |
Windows 7 Ultimate x64 | 9.3 TS1M2 | |
Windows Vista | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3 TS1M2 | |
64-bit Enabled HP-UX | 9.3 TS1M2 | |
64-bit Enabled Solaris | 9.3 TS1M2 | |
HP-UX IPF | 9.3 TS1M2 | |
Linux | 9.3 TS1M2 | |
Linux for x64 | 9.3 TS1M2 | |
Solaris for x64 | 9.3 TS1M2 | |