MPE/iX System Utilities Reference Manual (32650-90908)

Chapter 2
Utilities Quick Reference
SORT-MERGE/XL
56
SORT-MERGE/XL
Syntax
SORT MERGE
or or
RUN SORT.PUB.SYS RUN MERGE.PUB.SYS
Operation
Use SORT to sort files based on single-key or multiple-key items. Use MERGE to merge data from two or more
sorted files into a single, new file.
SORT-MERGE/XL operates as a standalone utility (either interactively or in batch mode), or from within a
program. You can use SORT-MERGE/XL to sort or merge data in various ways. Some sequences that you
might choose as the basis for sorting or merging data are:
alphabetically in either an ascending or descending order
numerically in either an ascending or descending order
alphabetically or numerically based on a single key data items
alphabetically or numerically based on multiple key data items
define a unique collating sequence for your application
merge two or more sorted files into a new merged file
Additional Discussion
For more information, refer to the Chapter 23, SORT-MERGE/XL, in this book and to SORT-MERGE/XL
General Users Guide.