SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46831: The Query Builder in SAS® Enterprise Guide® might not correctly process explicit pass-through code and joins

DetailsHotfixAboutRate It

In SAS Enterprise Guide 5.1, when running in explicit pass-through mode, the Query Builder generates SQL code that encloses alias and column names in double quotation marks.

In most cases, such as working with ORACLE and NETEZZA databases, the addition of the quotation marks generates a syntax error.

In addition, when joining only two tables, the table and column names are not quoted in the INNER JOIN statement, which leads to an error similar to the following.

ERROR: ORACLE prepare error: ORA-00904: "T2"."NAME": invalid identifier. SQL statement: SELECT 
       "t1"."NAME", "t1"."SEX", "t1"."AGE", "t1"."HEIGHT", "t1"."WEIGHT", "t2"."TEST" FROM 
       "CLASS" "t1" INNER JOIN "CLASSJOIN" "t2" ON (t1.NAME = t2.NAME).

When joining three or more tables, the join is rewritten on the WHERE clause, and alias and column names are not enclosed within quotation marks.

Currently, the workaround is to copy the generated code into a program node and manually edit the code.

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



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideWindows 7 Enterprise 32 bit5.16.19.3 TS1M09.3 TS1M0
Microsoft® Windows® for x645.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition5.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition5.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition5.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 2003 for x645.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 20085.16.19.3 TS1M09.3 TS1M0
Microsoft Windows Server 2008 for x645.16.19.3 TS1M09.3 TS1M0
Microsoft Windows XP Professional5.16.19.3 TS1M09.3 TS1M0
Windows 7 Enterprise x645.16.19.3 TS1M09.3 TS1M0
Windows 7 Home Premium 32 bit5.16.19.3 TS1M09.3 TS1M0
Windows 7 Home Premium x645.16.19.3 TS1M09.3 TS1M0
Windows 7 Professional 32 bit5.16.19.3 TS1M09.3 TS1M0
Windows 7 Professional x645.16.19.3 TS1M09.3 TS1M0
Windows 7 Ultimate 32 bit5.16.19.3 TS1M09.3 TS1M0
Windows 7 Ultimate x645.16.19.3 TS1M09.3 TS1M0
Windows Vista5.16.19.3 TS1M09.3 TS1M0
Windows Vista for x645.16.19.3 TS1M09.3 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.