[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: how add (merge!?) variables to master data set - CORRECTED INQUIRY
Globals can interact with backslashes in
ways that surprise you. On the other
hand, if Stata wasn't seeing the file,
the message might well differ.
> I have a actually quite simple problem, but my STATA (version
> 7) does not understand me:
> I want to add 3 variables from a different (using) data set,
> which has only 1 observation, to my master data set in memory
> with 28 observations.
> I tried:
> merge var1 var2 var3 using "$otherdirectory\differentdataset.dta"
> but I get the error message "variable var1 not found" or
> "var1 ambiguous abbreviation" (which is definitely not true).
> But it seems to me that "joinby" or "append" are even less
> appropriate commands.
> It would be much more efficient if it worked somEhow this
> way, because I must make a similar operation with 9 data sets.
* For searches and help try: