Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Replace 0 with blank

From   "William Buchanan" <>
To   <>
Subject   st: RE: Replace 0 with blank
Date   Sat, 16 Mar 2013 14:32:21 -0700

Hi ____,

Step 1. Review the Statalist FAQ which you are asked to read prior to
submitting a query to the Statalist. In particular, you should pay attention
to advice given regarding how to ask a question that can be answered easily
and usefully; you should also look at the section regarding the use of your
full name when posting.

Step 2. Search the help files/manuals and/or the FAQ archives.  

Step 3. If you are still having difficulty with your particular problem, use
the advice you would have read in Step 1 and you'll probably get some great

The problem with your question is there are too many unknowns to yield a
unique answer (or multiple answers that have the same unique solution).  Are
these leading zeros only? zeros embedded in a larger string? zeros that
trail some string?  Are you trying to get rid of the zeros in a number like
1,000,000 to rescale numeric variables? Are you interested in changing the
values or just changing the display formatting?  


-----Original Message-----
[] On Behalf Of todd49401
Sent: Saturday, March 16, 2013 1:20 PM
Subject: st: Replace 0 with blank

Hi all,

I see that there are a lot of questions regarding replacing blanks with
zeros...I'm actually trying to do the opposite- replace zeroes with blanks.

The variable is called 'ACAP'...if anyone could provide the code it would be

View this message in context:
Sent from the Statalist mailing list archive at
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index