Hi, I tried the following code but the missing values in the value column appear as blanks only instead of the . (dot).
If missing(value) then value= . ;
I tried also this.
If missing(value) then value= "." ;
It didn't work, I still see missing values as blanks only for the value numeric variable.
Please help.
Look at your MISSING option:
proc options option=missing;
run;
(inspect the log)
You have a statement
options missing=" ";
somewhere in your code (or in the SAS startup code) that replaces the default dot.
Hi, Thanks for the response. I want to see the dot for missing numeric variables in the csv output file. But missing values are blanks in the csv file. Any ideas to represent missing values as dot (".") in csv file?
Use the OPTIONS statement @Patrick posted before writing to the csv file.
Following @Kurt_Bremser's suggestion: Just add the following on top of your code and see if this helps.
options missing='.';
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.