Asked • 03/14/19

Replace missing values in SAS?

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 operations. Is there a way to change this without specifying each field? I have over 200. The way I do so is: data geo_cali_north; set geo_cali_north; if polar_data eq . then 0; if lat_xvar eq . then 0; run; How can I avoid doing this for every field?

1 Expert Answer

By:

Alexander D. answered • 03/15/19

Tutor
5.0 (63)

Experienced Quantitative Analytics Specialist

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.