SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 15561: PROC SQL syntax error when using unary minus sign on SELECT clause

DetailsHotfixAboutRate It

A syntax error is generated, from PROC SQL, when using the unary minus sign with functions on the SELECT clause. An example of PROC SQL code which will generate an error follows:

proc sql; create table temp as select col1, -sum(col2) as neg_col_2 from old; quit;

This problem has been fixed in SAS 9.1.3 SP3.

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 SASMicrosoft Windows XP 64-bit Edition9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows XP Professional9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows NT Workstation9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows 2000 Server9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows 2000 Professional9.1 TS1M3 SP19.1 TS1M3 SP3
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP19.1 TS1M3 SP3
Linux9.1 TS1M3 SP19.1 TS1M3 SP3
64-bit Enabled Solaris9.1 TS1M3 SP19.1 TS1M3 SP3
z/OS9.1 TS1M3 SP19.1 TS1M3 SP3
64-bit Enabled AIX9.1 TS1M3 SP19.1 TS1M3 SP3
OpenVMS Alpha9.1 TS1M3 SP19.1 TS1M3 SP3
64-bit Enabled HP-UX9.1 TS1M3 SP19.1 TS1M3 SP3
HP-UX IPF9.1 TS1M3 SP19.1 TS1M3 SP3
Linux on Itanium9.1 TS1M3 SP19.1 TS1M3 SP3
Tru64 UNIX9.1 TS1M3 SP19.1 TS1M3 SP3
* 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.