Date: Thu, 21 Mar 2002 09:56:46 -0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Matthew Ness <MNess@CROMEDICA.COM>
Subject: Re: over count
Content-type: text/plain; charset=us-ascii
I'm not quite sure if I understand your question correctly...do you mean
that each of the input datasets has a variable of the same name (that is
not part of the 'by' group), causing one to overwrite the other? If this
is the case you can rename one or both of the variables before the merge
(or drop one).
merge input1 (rename=(var=var1))
<vicctw@HOTMAI To: SAS-L@LISTSERV.UGA.EDU
Sent by: Subject: over count
When I merge two datasets, it is often to have duplicated variables.
Is there any way to avoid this situation?