Chapter Contents |
Previous |
Next |
MISSING |
Category: | Descriptive Statistics |
Category: | Character |
Syntax | |
Arguments | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
MISSING(numeric-expression | character-expression) |
Details |
Comparisons |
The NMISS function requires a numeric argument and returns the number of missing values in the list of arguments.
Examples |
This example uses the MISSING function to check whether the input variables contain missing values.
data values; input @1 var1 3. @5 var2 3.; if missing(var1) then do; put 'Variable 1 is Missing.'; end; else if missing(var2) then do; put 'Variable 2 is Missing.'; end; datalines; 127 988 195 ;
In this example, the following message appears in the SAS log.
Variable 2 is Missing.
See Also |
Function:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.