Assigns a missing value to the specified character or numeric variables .
Category: Character
CALL MISSING ( varname1 <, varname2 , ...>);
varname
specifies the name of SAS character or numeric variables.
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.
The MISSING function checks whether the argument has a missing value but does not change the value of the argument.
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=. |
Function:
'MISSING Function' on page 648
'How to Set Variable Values to Missing in a Data Step' in SAS Language Reference: Concepts