MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 9 503
Command Definitions (MAIL-PUTJCW)
MERGEINIT
Passes the number of keys used during the comparison of records. This
parameter can be either equal to or greater than one. If you specify the
numkeys
parameter, you must also specify the
keys
parameter. Together,
numkeys
and
keys
describe the way records are merged.
keys
16-bit signed integer array (optional)
Passes information about the keys used during comparison of records. If
you specify the
keys
parameter, you must specify the
numkeys
parameter.
Together,
keys
and
numkeys
describe the way records are merged.
The first element gives the position of the first character of the key within
the record. The second element gives the number of characters in the key.
Bits (0:8) of the third element give the ordering sequence of the records (0
for ascending, 1 for descending). Bits (8:8) of the third element indicate the
type of data according to the following convention:
Value Meaning
0 8-Bit unsigned integer
1 Twos complement (including 16-bit and 32-bit signed
integer)
2 Floating-point (including real and long)
3 Packed decimal
4 Display trailing sign
5 Packed decimal with even number of digits
6 Display leading sign
7 Display leading sign separate
8 Display trailing sign separate
9 Character (using the collating sequence of
charseq
)
11 Short floating-point decimal
12 Floating-point decimal
NOTE The integrity of the
keys
array must be maintained throughout the MERGE
operation. Do not change it until after you have called the MERGEEND intrinsic.
altseq
16-bit signed integer array (optional)
Passes an alternate collating sequence. Bits (0:8) of the first element are
specified according to the following table, where the sequence comprises
the columns and the data comprises the rows:
ASCII EBCDIC ALTSEQ
ASCII chr(255) chr(2) chr(0)
EBCDIC char(1) chr(255) undefined