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

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!uvaarpa!darwin.sura.net!paladin.american.edu!auvm!NIHCU.BITNET!HIS
  3. Message-ID: <SAS-L%93012708413733@UGA.CC.UGA.EDU>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Wed, 27 Jan 1993 08:38:20 EST
  6. Reply-To:     Howard Schreier <HIS@NIHCU.BITNET>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         Howard Schreier <HIS@NIHCU.BITNET>
  9. Subject: Re: Comma delimted ASCII files with missing variables...
  10. Lines: 38
  11.  
  12. CONTENT:  Response
  13. SUMMARY:  DSD option handles typical comma-delimited files
  14. REL/PLTF: 6.07+
  15.  
  16. >     A small problem, which was probably covered in the long discussion about
  17. > commas, but I didn't read it all as I am rather pushed for time.
  18. >     Anyway, I have a small (in terms of number of variables, large number of
  19. > subjects) set of data, produced by someone else that is comma delimted.  Using
  20. > the delimiter= option in the infile statement is fine, except when there is
  21. > missing data, as there are simply two commas in such a case, and SAS reads the
  22. > simply as one comma.  eg
  23. >
  24. > 1,2,3,4,5    This line is normal.  Well, the values are purely illustrative...
  25. > 1,2,,4,5     <- 3rd variable is missing.
  26. >
  27. >     I can't get the data changed.  I could get an editor to execute a simple
  28. > search and replace routine, but I am working on a noddy-proof system, so I
  29. > have to be able to solve this within SAS, if at all possible.  Has anyone got
  30. > anysuggestions?  (I tried to use the SCAN function, too, but that does the
  31. > same thing...)  RTFM is fine, but which FM and which page...  (Read the
  32. > archives is fine, too, but which archive and how to get the thing...)
  33.  
  34. If you are running 6.07 --
  35.  
  36.    FM:    Tech. Report P-222
  37.    Page:  30
  38.  
  39. Summary:  DSD option on the INFILE statement will  make  the
  40. comma  the  default  delimiter,  cause SAS to impute missing
  41. values  between  consecutive  delimiters,  and   allow   the
  42. delimiter character to appear within a quoted string.
  43.  
  44. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  45. \   Howard Schreier, U.S. Dept. of Commerce, Washington    /
  46. /                     MVS 5.18 & 6.07                      \
  47. \   Voice: (202) 377-4180        BITNET: HIS@NIHCU         /
  48. /   Fax:   (202) 377-4614      INTERNET: HIS@CU.NIH.GOV    \
  49. \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
  50.