MAX Function
Returns the largest value.
Category: |
Descriptive Statistics |
Syntax
Required Argument
argument
specifies a numeric
constant, variable, or expression. At least two arguments are required.
The argument list can consist of a variable list, which is preceded
by OF.
Comparisons
The MAX function returns
a missing value (.) only if all arguments are missing.
The MAX operator (<>)
returns a missing value only if both operands are missing. In this
case, it returns the value of the operand that is higher in the sort
order for missing values.
Example
The following SAS statements
produce these results.