SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3

Assigns a missing value to the specified character or numeric variables .

Category: Character

Syntax

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

Arguments

varname

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:

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

Категории