SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 59247: When you rename a date column and use it in date calculations, "ERROR: sqlplan internal error..." occurs

DetailsHotfixAboutRate It

When you use the SQL procedure to rename a date column and use it in date calculations, you might encounter the following error:

ERROR: sqlplan internal error: Cannot find symbol DATE_ACCOUNT_OPEN, var=60, tag=0001. This message can be caused by attempting to make correlated references between two different items on a single FROM clause.

This error occurs if the following is true about the query:

  • There is a join of multiple database management system (DBMS) tables.
  • Two or more date variables are being renamed.
  • The renamed date variables are used in a date calculation.

There are two possible workarounds:

  • Use a RENAME= data set option on the resulting data set.
  • Divide the renaming action and the date calculations into multiple steps.


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.4 TS1M29.4 TS1M5
z/OS 64-bit9.4 TS1M29.4 TS1M5
Microsoft® Windows® for x649.4 TS1M29.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M29.4 TS1M5
Microsoft Windows 8 Enterprise x649.4 TS1M29.4 TS1M5
Microsoft Windows 8 Pro 32-bit9.4 TS1M29.4 TS1M5
Microsoft Windows 8 Pro x649.4 TS1M29.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M29.4 TS1M5
Microsoft Windows 8.1 Enterprise x649.4 TS1M29.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M29.4 TS1M5
Microsoft Windows 8.1 Pro x649.4 TS1M29.4 TS1M5
Microsoft Windows 109.4 TS1M29.4 TS1M5
Microsoft Windows Server 20089.4 TS1M29.4 TS1M5
Microsoft Windows Server 2008 R29.4 TS1M29.4 TS1M5
Microsoft Windows Server 2008 for x649.4 TS1M29.4 TS1M5
Microsoft Windows Server 2012 Datacenter9.4 TS1M29.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M29.4 TS1M5
Microsoft Windows Server 2012 R2 Std9.4 TS1M29.4 TS1M5
Microsoft Windows Server 2012 Std9.4 TS1M29.4 TS1M5
Windows 7 Enterprise 32 bit9.4 TS1M29.4 TS1M5
Windows 7 Enterprise x649.4 TS1M29.4 TS1M5
Windows 7 Home Premium 32 bit9.4 TS1M29.4 TS1M5
Windows 7 Home Premium x649.4 TS1M29.4 TS1M5
Windows 7 Professional 32 bit9.4 TS1M29.4 TS1M5
Windows 7 Professional x649.4 TS1M29.4 TS1M5
Windows 7 Ultimate 32 bit9.4 TS1M29.4 TS1M5
Windows 7 Ultimate x649.4 TS1M29.4 TS1M5
64-bit Enabled AIX9.4 TS1M29.4 TS1M5
64-bit Enabled Solaris9.4 TS1M29.4 TS1M5
HP-UX IPF9.4 TS1M29.4 TS1M5
Linux for x649.4 TS1M29.4 TS1M5
Solaris for x649.4 TS1M29.4 TS1M5
* 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.