home *** CD-ROM | disk | FTP | other *** search
- ;C
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE # 4 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
- └─────────────────────────────────────────────────────────────────────────────┘
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ │
- │ │
- │ THE INPUT FILE: List of invoices for a computer store │
- │ │
- │ │
- │ WHAT WE WANT: (1) Copy only items for the IBM-PC and the Macintosh │
- │ (2) Move the columns around and add some extra spaces │
- │ (3) Change the way a negative amount is represented │
- │ (i.e. change 345.00- to -345.00) │
- │ │
- │ │
- │ HOW WE DO IT: (1) We use clustered ACCEPTs to make this selection │
- │ (2) We use SET and PAD for this step │
- │ (3) We use IF to detect the sign, then INSERT if necessary │
- │ │
- │ │
- └─────────────────────────────────────────────────────────────────────────────┘
-
- ;P
-