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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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