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 06:54:59 -0500
Reply-To:     Marianne Weires <m.weires@DKFZ.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Marianne Weires <m.weires@DKFZ.DE>
Subject:      Re: merging three files with three key variables
Comments: To: Haigang Zhou <haigang.zhou@GMAIL.COM>

Hi Annie,

In order to safe some typing and assuming the same columns' name, use a natural inner join. With the FEEDBACK procedure option you should see the transformed output in the LOG window (the implicitly coded join criteria).

PROC SQL FEEDBACK; CREATE TABLE MERGED AS SELECT * FROM mydata1 NATURAL INNER JOIN mydata2 NATURAL INNER JOIN mydata3; QUIT;

Regards, Marianne


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