home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!paladin.american.edu!auvm!USCMVSA.BITNET!HOFER
- Message-ID: <SAS-L%92091017094939@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Thu, 10 Sep 1992 14:08:00 PDT
- Reply-To: HOFER@USCMVSA.BITNET
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: HOFER@USCMVSA.BITNET
- Subject: Question on combining two slightly overlapping files
- Lines: 19
-
- I have two longitudinal files that I wish to combine into a
- single longitudinal file. For this, I was using a data step:
- DATA COMBINED; SET BASE1 BASE2;
- However, there is some overlap between the two data files.
- I know that I can combine the two files using a MERGE command
- and a BY statement--Since the two sets contain exactly the same
- number and name of variables, the second data set will overwrite
- the first (i.e., BY ID;).
- The DATA...; MERGE...: BY...; would work fine as long as I knew
- that the data was precisely the same for duplicate ID's.
- The question is regarding how I would obtain a data set which
- contained the duplicate records only? If I use the DATA... SET
- step, how could I search out, compare, and delete the duplicate
- ID's.
- Many thanks for any response.
- Scott Hofer
- Dept. of Psychology
- USC
- <HOFER@USCMVSA>
-