◄Key► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── Verb: MERGE Function: Combines two or more identically sequenced files on a set of specified keys, and passes the records, in merge order, to an output procedure or output file. Syntax: ┌────────────────────────────────────┐ │ ┌──────────┐ ▼ ▼ │ ►►──MERGE file-name-1─┬──┬─┬─ASCENDING──┬─┬───┬─data-name-1─────► └ON┘ └─DESCENDING─┘ └KEY┘ ►─┬──────────────────────────────────────────┬─► └┬─────────┬─SEQUENCE─┬──┬─alphabet-name-1─┘ └COLLATING┘ └IS┘ ┌──────────┐ ▼ │ ►──USING file-name-2 file-name-3──► ►┬─OUTPUT PROCEDURE─┬──┬─procedure-name-1─┬───────────────────────────┬┬►◄ │ └IS┘ └┬─THROUGH┬─procedure-name-2┘│ │ ┌──────────┐ └─THRU───┘ │ │ ▼ │ │ └─GIVING file-name-4──────────────────────────────────────────────────┘ -♦-