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 (January 1998, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 29 Jan 1998 09:10:16 -0800
Reply-To:     Scott Carl <SCARL@THECREEK.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Scott Carl <SCARL@THECREEK.COM>
Subject:      Datastep implementation of an inner join.
Content-Type: text/plain

Hi,

Can anyone give me a simple example that illustrates an inner join using a datastep, rather than proc sql? E.g.

data one; input key a; lines; 1 1 2 3 3 4 5 5 6 6 ;run;

data two; input key b; lines; 0 2 1 4 2 5 3 6 6 7 8 9 ;run;

proc sql; select i.*,j.b from one i,two j where i.key=j.key order by key; quit;


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