Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: Do-file no result, command line OK


From   "Michael Ghebre" <[email protected]>
To   <[email protected]>
Subject   RE: st: Do-file no result, command line OK
Date   Tue, 29 Mar 2011 14:03:10 +0100

Dear All

I would be immensely grateful if anybody could suggest on the point Uli has raised (preserve/restore command in Do file) as I have been struggling for a long time with this issue

Best 
Michael  



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ulrich Kohler
Sent: 29 March 2011 13:20
To: [email protected]
Subject: Re: st: Do-file no result, command line OK

This sounds pretty weird. 

I sometimes experience something like this in Do-Files with a
-preserve-/-restore- part in it. When running those parts of the Do-File
that contain the -preserve- command but does not contain the -restore-
command, the end of the Do-file brings you back to the preserved data
set. 

Uli


Am Dienstag, den 29.03.2011, 12:52 +0100 schrieb
[email protected]:
> Dear Statalisters,
> 
> I am running a do-file on a large dataset (4'999'453 observations). One of my command is:
> 
> replace companyname_short=subinstr(companyname,"."," ",.)
> 
> That is, I replace the dot in the variable "companyname" by a blank in the variable "companyname_short". When I run the do-file, stata tells me that x hundred thousands of "real changes" have been made, but actually nothing have changed in my dataset when I open the data viewer. However, when I copy and past the command from the do-file into the command line, everything works fine.
> 
> Any idea to make it run smoothly with the do-file?
> 
> Best,
> 
> Xavier 
> 
> 
> Xavier Vollenweider
> PhD candidate & Walsh fellow
> London School of Economics
> mob: +44(0)75 3531 9211
> 
> 
> Please access the attached hyperlink for an important electronic communications disclaimer: http://lse.ac.uk/emailDisclaimer
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index