CALL MISSING Routine

Assigns missing values to the specified character or numeric variables.

Category: Character

Syntax

CALL MISSING(varname1<, varname2, ...> );

Required Argument

varname

specifies the name of SAS character or numeric variables.

Details

The CALL MISSING routine assigns an ordinary numeric missing value (.) to each numeric variable in the argument list.
The CALL MISSING routine assigns a character missing value (a blank) to each character variable in the argument list. If the current length of the character variable equals the maximum length, the current length is not changed. Otherwise, the current length is set to 1.
You can mix character and numeric variables in the argument list.

Comparisons

The MISSING function checks whether the argument has a missing value but does not change the value of the argument.

Example

The following SAS statements produce these results.
SAS Statement
Result
prod='shoes';
invty=7498;
sales=23759;
call missing(sales);
put prod= invty= sales=;
prod=shoes invty=7498 sales=.
prod='shoes';
invty=7498;
sales=23759;
call missing(prod,invty);
put prod= invty= sales=;
prod= invty=. sales=23759
prod='shoes';
invty=7498;
sales=23759;
call missing(of _all_);
put prod= invty= sales=;
prod= invty=. sales=.

See Also

Functions:
How to Set Variable Values to Missing in a DATA Step in SAS Language Reference: Concepts