LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.


Back to: Top of message | Previous page | Main SAS-L page