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 (December 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 12 Dec 2006 13:17:59 -0500
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: How to split out the file
Comments: To: SUBSCRIBE SAS-L Irin Ros <irinfigvam@YAHOO.COM>

Irin,

Depends upon the rules concerning the records with different cov_term_dt.

Would something like the following suffice:

data have; input mem_num cov _term_dt date9.; cards; 1 10May2006 1 11May2006 2 10May2006 3 10May2006 4 10May2006 4 10May2006 ; run; proc sort data=have; by mem_num; run; data duplicates uniques; set have; by mem_num; if first.mem_num and last.mem_num then output uniques; else output duplicates; run;

HTH, Art ------ On Tue, 12 Dec 2006 09:55:30 -0800, Irin later <irinfigvam@YAHOO.COM> wrote:

>I have a file with two fields: > > mem_num (IDs) > cov _term_dt > > I need to split out the file into two files: > > > the first file have isolated records of members who have the same mem_num and different cov _term_dt > Another one to have just those members with unique mem_num > How can I implement it in code? > > Thank you in advance > > Irin > > > >--------------------------------- >Have a burning question? Go to Yahoo! Answers and get answers from real people who know.


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