This answers your question, quoted from
http://www.stata.com/help.cgi?missing
replace d = 0 if wage == .
* replace d to 0 if wage equals missing value
summarize wage cndwage if wage < .
* summarize wage and cndwage when the missing value of wage is excluded
replace wage0 = 0 if wage >= .
* replace wage0 to 0 if wage is missing
Quote :
*" ., the default, which is called the "system missing value" or sysmiss
and
.a, .b, .c, ..., .z, which are called the "extended missing values".
Numeric missing values are represented by large positive values. The
ordering is
all nonmissing numbers < . < .a < .b < ... < .z
Thus, the expression age > 60 is true if variable age is greater than 60
or missing.
To exclude missing values, ask whether the value is less than ".". For
instance,
. list if age > 60 & age < .
To specify missing values, ask whether the value is greater than or equal
to ".". For instance,
. list if age >=.
Stata has one string missing value, which is denoted by "" (blank). "*