Functions and CALL Routines |
Returns the smallest value.
Category: |
Descriptive Statistics
|
MIN(argument-1,argument-2<,...argument-n>)
|
-
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.
The MIN function returns a missing value
(.) only if all arguments are missing.
The MIN operator (><) returns a missing value if
either operand is missing. In this case, it returns the value of the operand
that is lower in the sort order for missing values.
SAS Statements |
Results |
x=min(7,4);
|
4
|
x1=min(2,.,6);
|
2
|
x2=min(2,-3,1,-1);
|
-3
|
x3=min(0,4);
|
0
|
x4=min(of x1-x3);
|
-3
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.