SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 30923: Aliased summary functions in Base SAS® software are not passed to databases

DetailsHotfixAboutRate It

In Base SAS software, aliased summary functions are not being passed to databases when the assigned alias is the same as the column name that is used within the function. This problem occurs in join situations. As a result, you will receive incorrect results.

The following code illustrates syntax that can produce these incorrect results. Note that this code is NOT intended to be run as a stand-alone piece of code, but it illustrates the incorrect syntax.

   libname x <... relational-dbms ...> 

   proc sql;                                                                   
      create table temp as                                                     
         select distinct table0.comax as comax label='comax',                  
                table1.coetb as coetb label='coetb',                           
                max(table2.ddenv) as ddenv label='max ddenv' format=yymmddd10. 
         from  x.custid table0                                                 
               join x.tr1c_crm table1 on table0.comax = table1.comax             
               join x.tj3f_crm table2 on  table0.comax = table2.comax            
                                   and table1.coetb = table2.coetb;            
   quit;                                                                       

Select 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 SystemBase SASz/OS9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for x649.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Windows Vista9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.2 TS1M0
Tru64 UNIX9.1 TS1M3 SP49.2 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.