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 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 11 Jul 2001 13:55:34 GMT
Reply-To:   Simpabimpa <simpabimpa@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Simpabimpa <simpabimpa@HOTMAIL.COM>
Subject:   Re: Question on Duplicates...

Hi!

Here's one way of doing it. Not sure it's the best way but it works. :)

//Simon

/******************************/ data a; input nr; cards; 1 3 4 ; run;

data b; input nr; cards; 2 4 ; run;

data foo; merge a(in=ina) b(in=inb); by nr; if ina and inb; run;

/*******************************/

smg1get@UPS.COM (TIEDENS GARY smg1get) wrote in news:177CDFBDC421D4119F1B0008C7CFA22F0560D5AD@02usnjrarps1c30.win.us.ups.c om:

> Hello all, > > I am producing a report and I have duplicates within the report. Is > there a way that I can have just the duplicate observations spun out to > one output dataset.


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