Assigns characters in your input data to represent special missing
values for numeric data
| Valid: |
Anywhere
|
| Category: |
Information
|
| Type: |
Global
|
-
character
-
is the value in your input data that represents
a special missing value.
The MISSING statement usually appears within a DATA
step, but it is global in scope.
The MISSING= system option
allows you to specify a character
to be printed when numeric variables contain ordinary missing values (.).
If your data contain characters that represent special missing values, such
as
a or
z, do not use the MISSING= option to define them;
simply define these values in a MISSING statement.
With survey data, you may want to identify certain kinds
of missing data. For example, in the data, an
A can mean that the respondent
is not at home at the time of the survey; an
R can mean that the respondent
refused to answer. Use the MISSING statement to identify to SAS that the values
A and
R in the input data lines are to be considered special
missing values rather than invalid numeric data values:
data survey;
missing a r;
input id answer;
datalines;
001 2
002 R
003 1
004 A
005 2
;
The resulting data set SURVEY contains exactly the values
that are coded in the input data.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.