How to use MISSING(), NMISS() and the CMISS() functions

This post was kindly contributed by StudySAS Blog - go there to comment and to read the full post.

SAS provides several functions to test for
missing values but in this post we will focus on MISSING(), CMISS() and NMISS()
functions. The NMISS() function is reserved for numeric variables. The
MISSING() and CMISS() functions can be used with either character or numeric
variables.  The CMISS() and
NMISS() functions are designed by SAS to count the number of arguments with
missing values whereas the MISSING function checks whether or not a variable is
missing. The MISSING(), CMISS(), and  NMISS()
functions provide a simple approach to check for missing values and these
functions let you write few lines of code by avoiding large if-statements when
you need to check for missing values in several values at the same time.

MISSING() function is very useful when you need
to check any variable has a missing value or not, but not sure if it’s a
character or numeric? MISSING function works for either character or numeric
variables and it also checks for the special…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

This post was kindly contributed by StudySAS Blog - go there to comment and to read the full post.