home *** CD-ROM | disk | FTP | other *** search
- ;C
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE #12 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
- └─────────────────────────────────────────────────────────────────────────────┘
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ │
- │ THE INPUT FILE: A list of people who owe you money for work done on │
- │ their car. The data is not arranged in columns, │
- │ though; each field is separated by a slash ("/") │
- │ character -- this is an example of "free-form data". │
- │ │
- │ WHAT WE WANT: We want to extract the address, phone number and the │
- │ amount owed. We omit the description of the work done. │
- │ │
- │ HOW WE DO IT: We use the PARSE command to extract the fields, and │
- │ use the APPEND command to group some of the data │
- │ together. We then send the information to the output │
- │ file (using OUTEND), and place a separator line between │
- │ each person's information, to make the listing easier │
- │ to read. │
- │ │
- └─────────────────────────────────────────────────────────────────────────────┘
-
- ;P
-