home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / parse_m / exampl06.stx < prev    next >
Encoding:
Text File  |  1995-05-02  |  1.7 KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE # 6    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │                                                                             │
  8. │  THE INPUT FILE:   List of applicants at a hiring agency.  This file is a   │
  9. │                    fixed-length (non-text) file, so there are no carriage   │
  10. │                    returns or line feeds.  Each record is 123 characters    │
  11. │                    wide.                                                    │
  12. │                                                                             │
  13. │                                                                             │
  14. │  WHAT WE WANT:     Convert the file to comma-delimited format.              │
  15. │                                                                             │
  16. │                                                                             │
  17. │  HOW WE DO IT:     (1) We use the CHOP command to break up fixed-length     │
  18. │                        data into individual 123-character lines.            │
  19. │                    (2) We use TRIM to remove spaces.                        │
  20. │                                                                             │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.