Date: Fri, 12 Jul 2002 14:37:03 -0400
Reply-To: "Balint, Jess" <JBalint@ALLDATA.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Balint, Jess" <JBalint@ALLDATA.NET>
Subject: Merges
Content-Type: text/plain; charset="iso-8859-1"
Hello all. I have a question about merges. What I usually do is:
data new;
merge data_one data_two;
by key_one key_two;
My first question is: If both datasets have the same variable names, which
one will prevail?
Also, can I do a merge with set statements? Eg:
data new;
set data_one key=key_one/key_two;
set data_two key=key_one/key_two;
if _iroc_ = 1;
Will this work the same as the normal merge statement?'
Thanks.
|