Solved

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

Posted on 2011-09-04
3
328 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
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Aloysius Low earned 250 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
Creating and Managing Databases with phpMyAdmin in cPanel.
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…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now