Jump to content

Mainframe sort merge

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MartinPackerIBM (talk | contribs) at 10:29, 29 June 2013 (Important to note "value added" capabilities of all 3 products). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Sort/Merge utility is a mainframe program to sort records in a file into a specified order, merge pre-sorted files into a sorted file, or copy selected records. Internally, these utilities use one or more of the standard sorting algorithms, often with proprietary fine-tuned code.

Mainframes were originally supplied with limited main memory by today's standards. The amount of data to be sorted was frequently very large. Because of this, unlike more recent sort programs, early sort/merge programs placed great emphasis on efficient techniques for sorting data on secondary storage, typically tape or disk. In 1968 the OS/360 Sort/Merge program provided five different "sequence distribution techniques" that could be used depending on the number and type of devices available.[1]

Sort/Merge is very frequently used; often the most commonly used application program in a mainframe shop.

Modern sort/merge programs also can copy files, select or omit certain records, summarize records, remove duplicates, reformat records, append new data and produce reports. Indeed most "Sort/Merge" applications use the wide range of additional processing capabilities, rather than purely sorting or merging records: The Sort/Merge product is a very fast way of performing input to and output from these functions.

Sort/merge is important enough that there are multiple companies each selling their own sort/merge package for IBM mainframes and their z/OS, z/VM and z/VSE operating systems. The major Sort/Merge packages are:

(Some of these also sell versions for other platforms, such as Unix, Linux, or Windows.)

References

  1. ^ IBM Corporation (1968). IBM System/360 Operating System Sort/Merge (GC28-6435-5) (PDF). pp. 16โ€“17.

See also

  • There is also a discussion of mainframe sorting in the BatchPipes article.