Problem Note 34391: An SQLPLAN error might occur when you use a calculated field to subset a table
An SQLPLAN error might occur when you use a calculated field to subset a table. The error occurs when you run an SQL procedure query where the following conditions exist:
- A new variable is created.
- The new variable is used in a CASE expression to create another new variable.
- The second created variable is used in a WHERE clause.
- The query includes a summary function.
SQLPLAN errors occur if you submit a query similiar to the following:
proc sql;
create table test as
select
class_1||class_2 AS class,
case
when (calculated class)^='99935'
then "PREM021"
else "0000000"
end
as recordtype,
sum(premium) as total
from DS1
where calculated recordtype^='0000000';
quit;
The errors that result are similar to the following:
ERROR: sqlplan internal error: Cannot find symbol
Class, var=1, tag=0001. This message can be caused
by attempting to make correlated references between
two different items on a single FROM clause.
ERROR: sqlplan internal error: Cannot find symbol
RecordType, var=2, tag=0001. This message can be
caused by attempting to make correlated references
between two different items on a single FROM clause.
ERROR: sqlplan internal error: Cannot find symbol
Class, var=1, tag=0001. This message can be caused
by attempting to make correlated references between
two different items on a single FROM clause.
ERROR: sqlplan internal error: Cannot find symbol
RecordType, var=2, tag=0001. This message can be
caused by attempting to make correlated references
between two different items on a single FROM clause.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
z/OS | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-09-14 13:16:16 |
Date Created: | 2009-01-07 14:10:58 |