SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 49076: Use of a DISTINCT argument in a view in a subquery might cause an exception or cause SAS to fail

DetailsHotfixAboutRate It

An error might occur when you are accessing a view that was created by the SQL procedure. The traceback error and the SAS task name mentioned here might vary depending on the code that you are using that references the view. Also, it might seem that SAS has stopped responding. The error looks similar to one of the following:

ERROR:  An exception has been encountered.
Please contact Technical Support and provide them with the following traceback
information:

The SAS task name is [PRINT]
Exception occurred at (02F9327A)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
00C13C98  0853A2D0  sashost:Main+0x8DE68

NOTE: The SAS System stopped processing this step because of errors.



ERROR:  An exception has been encountered.
Please contact Technical Support and provide them with the following
       traceback information:

The SAS task name is [SQL]
Exception occurred at (0825A553)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)

NOTE: The SAS System stopped processing this step because of errors.

The issue can occur when the PROC SQL view contains the following:

  • An ORDER BY clause and an IN clause that contains a subquery
  • The subquery references another view and the query contains DISTINCT
  • The second view references a database management access system (DBMS) table

The only workaround is to create a table instead of a view and use the table in the subquery for the IN clause.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to Aster nClusterMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to DB2z/OS9.3 TS1M09.4 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to GreenplumMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to HP NeoviewMicrosoft® Windows® for x649.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M0
64-bit Enabled Solaris9.3 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
SAS SystemSAS/ACCESS Interface to Informix64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to Microsoft SQL Server64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to MySQLMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to NetezzaMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to ODBCMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to OLE DBMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
SAS SystemSAS/ACCESS Interface to Oraclez/OS9.3 TS1M09.4 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to SybaseMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to Sybase IQMicrosoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 TS1M0
SAS SystemSAS/ACCESS Interface to Teradataz/OS9.3 TS1M09.4 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 20089.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Windows 7 Enterprise x649.3 TS1M09.4 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Professional x649.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows Vista for x649.3 TS1M0
64-bit Enabled AIX9.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.3 TS1M09.4 TS1M0
HP-UX IPF9.3 TS1M0
Linux9.3 TS1M0
Linux for x649.3 TS1M09.4 TS1M0
Solaris for x649.3 TS1M09.4 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.