Chapter Contents

Previous

Next
MISSING

MISSING



Returns a numeric result that indicates whether the argument contains a missing value

Category: Descriptive Statistics
Category: Character


Syntax
Arguments
Details
Comparisons
Examples
See Also

Syntax

MISSING(numeric-expression | character-expression)

Arguments

numeric-expression
specifies numeric data.

character-expression
is the name of a character variable or an expression that evaluates to a character value.


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:

NMISS


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.