home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / f / fixer1.zip / CSV2TAB.DOC next >
Text File  |  1991-03-16  |  2KB  |  48 lines

  1.  
  2. CSV2TAB - an aid in preparing data for desktop publishing or word
  3. processing with proportional fonts.
  4. =================================================================
  5.  
  6. This little utility is a very simple-minded version of the filter
  7. routines that exist in some more sophisticated software.
  8.  
  9. It is useful in preparing material for printing when the material has
  10. been saved from a database product or a spreadsheet, or downloaded
  11. from a mainframe, in CSV (Comma-Separated-Variable) format.
  12.  
  13. This is the format where the fields are variable-length and have
  14. commas between them. Alphabetic fields which might themselves contain
  15. commas are placed in quotes. Typical record:
  16.  
  17. "Smith, Jones, and Co.","123 Main St.","Atown","MA 02192",144.95,3,"X"
  18.  
  19. The 144.95 might be an account balance, the 3 and the X might be
  20. codes, etc.
  21.  
  22. To make this print properly with proportional fonts, you need to
  23. replace the commas with TABS and remove the quotes. Then in your WP
  24. or DTP page you set up the tab stops: in this case, including two
  25. decimal tabs to line up the numeric columns. But converting the text
  26. from CSV to tab format may be tricky. For instance, you can't just do
  27. a global replace of commas by tasb: the commas in the name will
  28. create extra unwanted tabs in the document.
  29.  
  30. CSV2TAB does the job. Just type CSV2TAB and it will prompt you for the
  31. input file, and a name for the output file: or you can run it with the
  32. two names in the command line, e.g.
  33.  
  34.  CSV2TAB ACCOUNTS.CSV ACCOUNTS.TAB
  35.  
  36. Feel free to use it any way you want. I've tested it and it works,
  37. but am not responsible for any effects of its use.
  38.  
  39. It was written in QuickBasic 4.5 with the excellent PDQ library from
  40. Crescent Software, which is what enabled it to be so small.
  41.  
  42. John Bonavia
  43. 39 Bradford St
  44. Needham MA 02192
  45.  
  46. March 16 1991
  47.  
  48.