BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi

My report has a date column which shows Dots . when the date is missing.

How can I make them as NULL or blank


Sanjay
3 REPLIES 3
Peter_C
Rhodochrosite | Level 12
suppose your dates are formatted in DATE9. format.
Then create your own date format with no dot (just blank) for missing.
[pre]* run this code to create mdate9 format ;
proc format ;
value mdate .=' ' other = [date9.] ;
run;[/pre]
Then use format mdate. instead of date9.

If you were using a different format than date9., then put your other format inside the []


good luck

PeterC
prholland
Fluorite | Level 6
Sunil,

You can change the display of all missing values, whether character or numeric, to blank with the following OPTIONS statement:


OPTIONS MISSING=" ";


........Phil
deleted_user
Not applicable
You can also use computed columns -recode a column in filter and query.

Regards,
Loccita

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 29353 views
  • 2 likes
  • 3 in conversation