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 (February 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 23 Feb 2009 02:17:41 -0500
Reply-To:     Haigang Zhou <haigang.zhou@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Haigang Zhou <haigang.zhou@GMAIL.COM>
Subject:      Re: merging three files with three key variables
Comments: To: Annie Lee <hummingbird10111@HOTMAIL.COM>

There may be a better method, but the following code should work. Hope it helps.

proc sql; create table merged as select a.*,, b.bbb, b.ccc, b.ddd, b.eee,, c.def from mydata1 as a, mydata2 as b, mydata3 as c where = = and a.adm = b.adm = c.adm and a.dis = b.dis = c.dis ; quit;

Haigang Zhou

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