home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / sasl / 5771 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.2 KB  |  45 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!uvaarpa!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!paladin.american.edu!auvm!LEICESTER.AC.UK!SDD
  3. Return-Path: <@OHSTVMA.ACS.OHIO-STATE.EDU:SAS-L@VTVM2.BITNET>
  4. Via: uk.ac.leicester; Tue, 26 Jan 1993 17:01:23 +0000
  5. X-Mailer: ELM [version 2.3 PL0 (LUT)]
  6. Message-ID: <11418.9301261627@irix.le.ac.uk>
  7. Newsgroups: bit.listserv.sas-l
  8. Date:         Tue, 26 Jan 1993 16:27:29 GMT
  9. Reply-To:     Simon Dunkley <sdd@LEICESTER.AC.UK>
  10. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  11. From:         Simon Dunkley <sdd@LEICESTER.AC.UK>
  12. Subject:      Comma delimted ASCII files with missing variables...
  13. Comments: To: "(SAS(r) Distribution list)" <sas-l@vtvm2.cc.vt.edu>
  14. Lines: 29
  15.  
  16. Hi all,
  17.  
  18.     A small problem, which was probably covered in the long discussion about
  19. commas, but I didn't read it all as I am rather pushed for time.
  20.     Anyway, I have a small (in terms of number of variables, large number of
  21. subjects) set of data, produced by someone else that is comma delimted.  Using
  22. the delimiter= option in the infile statement is fine, except when there is
  23. missing data, as there are simply two commas in such a case, and SAS reads them
  24. simply as one comma.  eg
  25.  
  26. 1,2,3,4,5    This line is normal.  Well, the values are purely illustrative...
  27. 1,2,,4,5     <- 3rd variable is missing.
  28.  
  29.     I can't get the data changed.  I could get an editor to execute a simple
  30. search and replace routine, but I am working on a noddy-proof system, so I
  31. have to be able to solve this within SAS, if at all possible.  Has anyone got
  32. anysuggestions?  (I tried to use the SCAN function, too, but that does the
  33. same thing...)  RTFM is fine, but which FM and which page...  (Read the
  34. archives is fine, too, but which archive and how to get the thing...)
  35.  
  36.     Simon
  37.  
  38.       00 0 O o o...
  39.      0    ___         _________________ _______________ _______________
  40.     ][_n_i|(  ooo___  | Simon Dunkley | |   sdd@le    | | sdd@le.ac.uk|
  41.    (  __  | | |     | | Department of | |University of| |     +44     |
  42.    _||__|_|_|_|_____|_|__Psychiatry___|_|__Leicester__|_|_533__523259_|
  43.     o  O--O    o o o    o-o       o-o      o   o   o       o   o   o
  44. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  45.