FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-31
SORTMERGESTART Procedure
If a key field extends beyond the end of a variable-length record, SORTPROG pads
the concatenated key values with blanks in a structured output file. SORTPROG can
compare an alphanumeric key field at the end of a short record if the record contains
the first byte of the key value.
Fields of the flags Parameter
Table 5-4 on page 5-32 lists the flags parameter bits for the SORTMERGESTART
procedure.
Table 5-3. Key-Field Definitions
Word
Bit
Positions Values and Description
0 <0> O 0 = Ascending order
1 = Descending order
<1> U 0 = Do not upshift
1 = Upshift (alphanumeric string only)
<2:7> R Reserved; must be 0
<8:15> Type 1 = ALPHANUMERIC STRING
2 = UNSIGNED NUMERIC STRING
3 = NUMERIC STRING SIGN, TRAILING EMBEDDED
4 = NUMERIC STRING SIGN, TRAILING SEPARATE
5 = NUMERIC STRING SIGN, LEADING EMBEDDED
6 = NUMERIC STRING SIGN, LEADING SEPARATE
9 = BINARY SIGNED
10 = BINARY UNSIGNED
11 = FLOAT
1 <0:15> Length Key length in bytes. For key type 11, length must be 4 or 8
bytes. For key types 3 through 6, length must be 32 or
fewer bytes.
2 <0:15> Offset Offset from beginning of record to key in bytes (record
begins at 0). For key type 11, offset must be an even
number.