BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ANKH1
Pyrite | Level 9
That was my first try, but the log marked an error, something along the lines of the variable not having the right format.
Reeza
Super User
. represent numeric missing. If you want blanks when you export the data to a different format use option missing='';

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n0qamf3yfjtwzhn1ran6xwblnlea.htm...(.).
sbxkoenk
SAS Super FREQ

A missing value for a CHAR variable is a blank.
A missing value for a NUMERIC variable is a dot ( . ).

 

Do you really want to change that "behavior" of SAS??
It's possible, but a bit of a weird idea and I wouldn't do it.

 

If you convert your numeric variable into a character one, the dots become blanks.

 

Koen

Astounding
PROC Star
It might take 3 simple statements, such as:

if var3="." then var3=" ";

However, first confirm the values that look like blanks or dots. Check using:

proc freq data=have;
tables months timepoint var3 ;
format months timepoint var3 $hex6.;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 18 replies
  • 4474 views
  • 10 likes
  • 8 in conversation