Solved

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

Posted on 2011-09-04
3
333 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

920 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

17 Experts available now in Live!

Get 1:1 Help Now