SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 12133: Prior to SAS® 9.4, the Base SAS® MEDIAN() function has limitations when used in PROC SQL

DetailsAboutRate It

The MEDIAN function is documented in "What's New in Base SAS® 9.0, 9.1, and 9.1.3 Language."

The syntax for using this function is shown below:

MEDIAN(value1<,value2,...>)

Prior to SAS 9.4, if the Base SAS MEDIAN function is used in the SQL procedure, it returns only the median value for columns referenced in the function for the current row.

Beginning in SAS 9.4, PROC SQL supports the median aggregate function. When more than one argument is used within an SQL aggregate function, the function is no longer considered to be an SQL aggregate or summary function. If a Base SAS function with a similar name exists, then PROC SQL executes this Base SAS function, and the results that are returned are based on the values for the current row. For more information about the usage of the MEDIAN function, see the "summary-function" section in the SAS® 9.4 SQL Procedure User's Guide, Third Edition.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled AIX9 TS M0
OpenVMS Alpha9 TS M0
64-bit Enabled HP-UX9 TS M0
HP-UX IPF9 TS M0
HP-UX9 TS M0
Linux9 TS M0
z/OS9 TS M0
64-bit Enabled Solaris9 TS M0
Solaris9 TS M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows XP Professional9 TS M0
Microsoft Windows NT Workstation9 TS M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M0
Microsoft Windows Server 2003 Standard Edition9 TS M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M0
Microsoft Windows 2000 Server9 TS M0
Tru64 UNIX9 TS M0
AIX9 TS M0
* 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.