| 1. |
How Does Sas Handle Missing Values In: Assignment Statements, Functions, A Merge, An Update, Sort Order, Formats, Procs? |
|
Answer» When you check for ordinary missing numeric VALUES, you can USE code that is similar to the following: if numvar=. then do; If your DATA contains SPECIAL missing values, you can check for either an ordinary or special missing value with a STATEMENT that is similar to the following: if numvar<=.z then do; To check for a missing character value, you can use a statement that is similar to the following: if charvar=' ' then do; The MISSING function enables you to check for either a character or numeric missing value, as in: if missing(var) then do; When you check for ordinary missing numeric values, you can use code that is similar to the following: if numvar=. then do; If your data contains special missing values, you can check for either an ordinary or special missing value with a statement that is similar to the following: if numvar<=.z then do; To check for a missing character value, you can use a statement that is similar to the following: if charvar=' ' then do; The MISSING function enables you to check for either a character or numeric missing value, as in: if missing(var) then do; |
|