home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / 6133 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.5 KB

  1. Path: sparky!uunet!mcsun!uknet!ox-prg!oxuniv!hsr4
  2. From: hsr4@vax.oxford.ac.uk
  3. Newsgroups: comp.databases
  4. Subject: Re: Import ASCII to DBase III
  5. Message-ID: <1992Aug14.161251.8281@vax.oxford.ac.uk>
  6. Date: 14 Aug 92 15:12:51 GMT
  7. References: <14257@mindlink.bc.ca>
  8. Organization: Oxford University VAX 6620
  9. Lines: 36
  10.  
  11. In article <14257@mindlink.bc.ca>, Tom_Gowdyk@mindlink.bc.ca (Tom Gowdyk) writes:
  12. > Can someone tell me how to import an ASCII file into DBase 3.  The manuals are
  13. > not clear on how or even if I can do this.
  14.  
  15. It depends on the organisation of your ASCII data.
  16.  
  17. If your data looks like this:
  18.  
  19. 1234433221KING123GREEN2233.54456
  20.  
  21. then you can define your fields appropriately, and APPEND FROM <ascii-filename>
  22. SDF.
  23.  
  24. If your data looks like this:
  25.  
  26. 123 44 332 21 KING 123 GREEN 2233.54 456
  27.  
  28. then you can define your fields as before (i.e. don't include the blanks) and 
  29. APPEND FROM <ascii-filename> DELIMITED WITH BLANK.
  30.  
  31. You can also try defining your fields as before but insert between each defined 
  32. field a character field (called, say, S0, S1, S2, S3, S4, S5) of type CHARACTER
  33. and length 1.  Sometimes I've found this to be a more reliable way of bringing
  34. data on board than using the DELIMITED WITH BLANKS, especially when the number
  35. of delimiting blanks varies! :-).  Once APPENDED ...SDF, the structure can be
  36. modified to drop the S0, S1, ... et al.             ^^^
  37.  
  38. If your data looks like this:
  39.  
  40. 123,44,332,21,KING,123,GREEN,2233.54,456
  41.  
  42. then define your fields, etc., and APPEND FROM <ascii-filename> DELIMITED.
  43.  
  44. Hope this helps,
  45.  
  46. Peter Brooks
  47.