home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!uvaarpa!darwin.sura.net!paladin.american.edu!auvm!NIHCU.BITNET!HIS
- Message-ID: <SAS-L%93012708413733@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Wed, 27 Jan 1993 08:38:20 EST
- Reply-To: Howard Schreier <HIS@NIHCU.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Howard Schreier <HIS@NIHCU.BITNET>
- Subject: Re: Comma delimted ASCII files with missing variables...
- Lines: 38
-
- CONTENT: Response
- SUMMARY: DSD option handles typical comma-delimited files
- REL/PLTF: 6.07+
-
- > 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 the
- > 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...)
-
- If you are running 6.07 --
-
- FM: Tech. Report P-222
- Page: 30
-
- Summary: DSD option on the INFILE statement will make the
- comma the default delimiter, cause SAS to impute missing
- values between consecutive delimiters, and allow the
- delimiter character to appear within a quoted string.
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- \ Howard Schreier, U.S. Dept. of Commerce, Washington /
- / MVS 5.18 & 6.07 \
- \ Voice: (202) 377-4180 BITNET: HIS@NIHCU /
- / Fax: (202) 377-4614 INTERNET: HIS@CU.NIH.GOV \
- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
-