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