SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56478: An error occurs when you use the CAST=YES LIBNAME option with an ORDER BY clause or a SELECT DISTINCT clause in SAS/ACCESS® Interface to Teradata

DetailsHotfixAboutRate It

The CAST=YES LIBNAME option for SAS/ACCESS Interface to Teradata causes an error when you use data of type BIGINT or DECIMAL in either a SELECT DISTINCT or an ORDER BY clause.

For example, if you use the following code:

libname tera_lib teradata server=server_name user=user-id PASSWORD=password cast=yes;
  proc sql;
      select * from tera_lib.decimal_table order by var2 ;

This error might occur:

ERROR: Teradata row not delivered (trget): 
Overflow occurred computing an expression involving decimal_table.var2.

Workarounds

To work around this issue, do one of the following:

  • Omit the ORDER BY clause.
  • Use explicit SQL pass through.
  • Create a Teradata view that contains an ORDER BY clause.

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



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to TeradataSolaris for x649.3 TS1M29.4 TS1M3
Linux for x649.3 TS1M29.4 TS1M3
Linux9.3 TS1M29.4 TS1M3
HP-UX IPF9.3 TS1M29.4 TS1M3
64-bit Enabled Solaris9.3 TS1M29.4 TS1M3
64-bit Enabled HP-UX9.3 TS1M29.4 TS1M3
64-bit Enabled AIX9.3 TS1M29.4 TS1M3
Windows Vista for x649.3 TS1M2
Windows Vista9.3 TS1M2
Windows 7 Ultimate x649.3 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Professional x649.3 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Home Premium x649.3 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Enterprise x649.3 TS1M29.4 TS1M3
Windows 7 Enterprise 32 bit9.3 TS1M29.4 TS1M3
Microsoft Windows XP Professional9.3 TS1M2
Microsoft Windows Server 2012 Std9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.3 TS1M29.4 TS1M3
Microsoft Windows Server 20089.3 TS1M29.4 TS1M3
Microsoft Windows Server 2003 for x649.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M2
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft® Windows® for x649.3 TS1M29.4 TS1M3
z/OS9.3 TS1M29.4 TS1M3
* 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.