Problem Note 48585: SQL queries that contain column or inline-view aliases might cause errors when executed against a database using the SAS/ACCESS® software
Errors might occur when SQL queries that contain column or inline-view aliases are executed against a database using SAS/ACCESS software.
Here are some examples of the error messages that can occur:
- ERROR: ORACLE prepare error: ORA-00904: "TXT_1"."Col1": invalid identifier.
- ERROR: CLI describe error: [IBM][CLI Driver][DB2/AIX64] SQL0206N "A.COL1" is not valid in the context where it is used.
- ERROR: Teradata execute: Column/Parameter 'MYUSER.TXT_1.col1' does not exist.
- SPDS_ERROR: Unresolved reference to table/correlation name TXT_1.
Click the Hot Fix tab in this note to access the hot fix for this issue.
The hot fix that is included with this SAS note corrects several issues related to implicit pass-through:
- Using CALCULATED outside of an inline view
- Using GROUP BY and an inline view
- Using column alias and an inline view
- Various other alias issues
The following are examples of errors that are corrected with this hot fix:
- ERROR: ORACLE prepare error: ORA-00904: "TXT_1"."Col1": invalid identifier.
- ERROR: CLI describe error: [IBM][CLI Driver][DB2/AIX64] SQL0206N "A.COL1" is not valid in the context where it is used.
- ERROR: Teradata execute: Column/Parameter 'MYUSER.TXT_1.col1' does not exist.
- SPDS_ERROR: Unresolved reference to table/correlation name TXT_1
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS2M3 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | |
Microsoft® Windows® for x64 | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | |
Microsoft Windows Server 2008 | 9.2 TS2M3 | |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | |
Microsoft Windows XP Professional | 9.2 TS2M3 | |
Windows 7 Enterprise 32 bit | 9.2 TS2M3 | |
Windows 7 Enterprise x64 | 9.2 TS2M3 | |
Windows 7 Home Premium 32 bit | 9.2 TS2M3 | |
Windows 7 Home Premium x64 | 9.2 TS2M3 | |
Windows 7 Professional 32 bit | 9.2 TS2M3 | |
Windows 7 Professional x64 | 9.2 TS2M3 | |
Windows 7 Ultimate 32 bit | 9.2 TS2M3 | |
Windows 7 Ultimate x64 | 9.2 TS2M3 | |
Windows Vista | 9.2 TS2M3 | |
Windows Vista for x64 | 9.2 TS2M3 | |
64-bit Enabled AIX | 9.2 TS2M3 | 9.2 TS2M3 |
64-bit Enabled HP-UX | 9.2 TS2M3 | |
64-bit Enabled Solaris | 9.2 TS2M3 | 9.2 TS2M3 |
HP-UX IPF | 9.2 TS2M3 | |
Linux | 9.2 TS2M3 | |
Linux for x64 | 9.2 TS2M3 | |
OpenVMS on HP Integrity | 9.2 TS2M3 | |
Solaris for x64 | 9.2 TS2M3 | |
*
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.
There have been various improvements to the generated SQL that the SAS/ACCESS® software sends to the underlying databases
Type: | Problem Note |
Priority: | high |
Date Modified: | 2013-02-15 17:12:06 |
Date Created: | 2012-12-03 08:40:52 |