FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-21
SORTMERGESTART Procedure
key-block input
INT:ref:*
is an integer array defining the key fields. Its size is one word plus three words for
each key. The first word contains the total number of keys. The rest of the array
contains three-word descriptions of the keys. The maximum number of keys is 63.
For more information, see Key-Field Definitions in the Key-Block Array on
page 5-30.”
num-merge-files input
INT:value
is the number of input files for merging. The amount of space available for the
scratch file determines the maximum number of records SORTPROG accepts. The
total number of files for both sorting and merging must be greater than 0 and
cannot exceed 32. If you omit the num-sort-files parameter (or specify a value
of 0), you must specify a value for num-merge-files.
If the merge files are input streams, the in-file-name parameter must specify all
blanks as the name of each stream, and SORTMERGESEND must send each
record to SORTPROG. For more information, see Merging Records From Input
Streams on page 5-19.
num-sort-files input
INT:value
is the number of input files for sorting. The amount of space available for the
scratch file determines the maximum number of records SORTPROG accepts. The
total number of files for both sorting and merging cannot exceed 32. If you omit the
in-file-name parameter, the number of sort files must be 1. If you omit the
num-merge-files parameter (or specify a value of 0), you must specify a value
for num-sort-files.
in-file-name input
INT:ref:*
is an array including one 12-word entry for each input file. SORTPROG accepts a
set of input files in the order presented, with the merged files first. If you specify
more than one input file, you must specify a name for each file. The name can be
all blanks for a single sort file. Each name must be all blanks if the input files are
streams for merging.
When working with more than one input file, SORTPROG uses the same key-field
specifications for all input records.
You can specify files containing sorted records and files containing unsorted
records for the same sort run.