?
Solved

What is the best way to get rid of a missing value in SAS?

Posted on 2011-09-04
3
Medium Priority
?
360 Views
Last Modified: 2013-11-16
When SAS creates a  missing value ina column what is the best way to get rid of the
'.' ?

If the field is empty I would like it to be empty and not ".".
0
Comment
Question by:morinia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Aloysius Low earned 1000 total points
ID: 36482120
the '.' is just a representation of NULL, so there's no way of removing it...
0
 
LVL 11

Expert Comment

by:theartfuldazzler
ID: 36482482
Hi

I know this is closed - but this may help....

The period '.' is just SAS's representation for missing.  If you want to change that representation, you can change it in the OPTIONS statement:

OPTIONS MISSING = " ";

or:

OPTIONS MISSING = 'X';

The MISSING character length can only be a length of 1 character.


options missing = '.';

DATA test;
 x = 10/0;
 put x=;
 RUN;

 options missing = ' ';

DATA test;
 x = 10/0;
 put x=;
 RUN;

Open in new window

0
 
LVL 14

Expert Comment

by:Aloysius Low
ID: 36482494
i guess it's a subjective interpretation ;)

i was reading it as removing it so there's no way of removing it... but in terms of presentation, you are right to use options missing...
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question