Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-04
3
Medium Priority
?
367 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…
Suggested Courses

604 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