Date: Fri, 18 Oct 2002 07:20:54 -0400
Reply-To: "Chakravarthy, Venky" <Venky.Chakravarthy@PFIZER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Chakravarthy, Venky" <Venky.Chakravarthy@PFIZER.COM>
Subject: Re: "safe" merging?
Content-Type: text/plain; charset="iso-8859-1"
This still won't completely address the problem but using MSGLEVEL = I gives
a lot more information in recent versions. One of those improvements shows
up in conducting a MERGE. See the INFO line below:
data q ;
a = 1 ;
b = 1 ;
data r ;
a = 1 ;
b = 2 ;
options msglevel = i ;
data w ;
merge q r ;
by a ;
INFO: The variable B on data set WORK.Q will be overwritten by data set
Sent: Thursday, October 17, 2002 1:01 PM
Subject: "safe" merging?
Does anyone have some code they will share for doing a "safe" merge? By
"safe" merge I mean that if there are identical variables in the second
dataset then they will not get used. I know this is the case with SQL merges
but then you get these stupid warning messages coming out if the same
variable is in the second dataset. These warning messages are a nuisance for
Clinical reporting because you have got to check every one of the damn
things. I don't know any way to suppress them, though they are easy enough
to identify. It just would be nicer if they weren't there.