[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: -save- with emptyok
The issue here is not with -save-, but with -append-.
-append- needs something more than almost nothing
to join on to. I think you need to -save- your dataset
with variables (even though there are no observations).
Fortunately, a token variable is sufficient (but evidently
. gen completeanduttergarbage = .
. save empty, emptyok
. append using auto
. drop completeanduttergarbage
Admittedly, the error message here does not indicate
> I'm having trouble getting -save- to work with emptyok in the
> way I think it
> should. Here's an example.
> . save temp, emptyok
> (note: dataset contains 0 observations)
> file temp.dta saved
> . use temp.dta
> . append using auto.dta
> no dataset in use
> Shouldn't I be able to append? What am I doing wrong? I'm
> using Stata 9.2.
* For searches and help try: