Previous Page | Next Page

Functions and CALL Routines

CALL MISSING Routine



Assigns missing values to the specified character or numeric variables.
Category: Character

Syntax
Arguments
Details
Comparison
Examples
See Also

Syntax

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

Arguments

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.


Comparison

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


Examples

SAS Statements Results
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

Function:

MISSING Function

"How to Set Variable Values to Missing in a Data Step" in SAS Language Reference: Concepts

Previous Page | Next Page | Top of Page