BookmarkSubscribeRSS Feed
ari
Quartz | Level 8 ari
Quartz | Level 8

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.

 

 

4 REPLIES 4
Kurt_Bremser
Super User

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.

ari
Quartz | Level 8 ari
Quartz | Level 8

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?

Patrick
Opal | Level 21

Following @Kurt_Bremser's suggestion: Just add the following on top of your code and see if this helps.

options missing='.';

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1278 views
  • 0 likes
  • 3 in conversation