Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: weirdness in merging

From   "Michael Blasnik" <>
To   <>
Subject   st: Re: weirdness in merging
Date   Thu, 27 Feb 2003 12:57:36 -0500

By default, -merge- will not overwrite any existing data even if it is
missing values.  You need to specify the update option in your merge

Michael Blasnik

----- Original Message -----
From: "Huiber Gabi (nat1gxh)" <>
To: <>
Sent: Thursday, February 27, 2003 12:22 PM
Subject: st: weirdness in merging

> Hello all,
> My problem should be simple. I have a file A, and two temporary files
> and "`C'".
> I have two variables in A, call them a and b, by which I am merging file A
> first with "`B'", then with "`C'". I do so because "`B'" and "`C'" consist
> of four variables each: a, b, c and d. I want to get c and d into A. Files
> "`B'" and "`C'" match separate subsets of the values of a and b, but the
> matches add up exactly to the full set A, so at the end of these two
> merge operations, A should be wider by two non-missing variables: c and d.
> It doesn't work, and I don't see why. My code goes like this:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index