adspace
What is data _null_? ,Explain with code when u need to use
it in data step programming ?
Answer Posted / Arpit Gautam
Data _NULL_ is a SAS data set that contains only one variable named _NULL_, which has all missing or uninitialized values. It can be used in data step programming when you need to handle missing or uninitialized values in your data sets.
Here's an example of how to use it:
```C
data work;
set have;
if missing then output null;
run;
```
In this example, `have` is the original data set and `work` is the new data set that contains only the rows with missing values. The `if missing` statement checks each variable in the data set, and if any of them are missing or uninitialized, it outputs the row to the `null` data set.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers