home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / bit / listserv / sasl / 4137 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.3 KB  |  31 lines

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