How do you replace all missing values with zeroes in SAS? I have a text file that I dump into SAS to process some geo data, but whenever it has a missing value it breaks the
You can set all the missing values to 0 with like this:
data myData; set myData; array a(*) _numeric_; do i=1 to dim(a); if a(i) = . then a(i) = 0; end; drop i;
This will convert any numeric "." to a 0