FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-24
SORTMERGESTART Procedure
out-file-name input
INT:ref:12
is a 12-word array that names the file for the output records. If you omit
out-file-name or it equals all blanks, SORTMERGERECEIVE must return the
records, one for each call, to the calling process.
If out-file-name specifies an existing file that has a different type than
out-file-type or the default for out-file-type, SORTPROG purges the file
and creates a new one with the same name.
out-file-exclusion-mode input
INT:value
is the exclusion mode with which SORTPROG opens the output file. Use one of
the following values to specify the exclusion mode:
0 The output records are in the same format as the input records. This is a
record sort, the default SORTPROG uses when you omit format.
1 The output records are 32-bit integers describing the order of the sorted
records. This is a permutation sort. For example, if the 20th input record
is first in order after sorting, 20 is the value of the first output record.
2 Each output record consists of the key-field values concatenated in the
order you defined the fields. This is a key sort. If a key field extends
beyond the end of a variable-length record, SORTPROG pads the key
values with blanks for a structured file.
3 Each output record begins with the 32-bit (4-byte) record number
followed by the concatenated values of the key fields. This is a combined
permutation and key sort.
Caution. If you specify the same file as both an input file and the output file for a sort run, you
can lose all the data from the input file if an error or processor failure terminates the
SORTPROG process.
Value Exclusion Mode
–1 Use the default mode
0 SHARED
1 EXCLUSIVE
2 PROTECTED