MPE/iX Intrinsics Reference Manual (32650-90875)
500 Chapter9
Command Definitions (MAIL-PUTJCW)
MERGEINIT
MERGEINIT
NM and CM callable.
Initializes the MERGE/XL subsystem and the merging of two or more sorted files.
Syntax
I16A PROC I16A
MERGEINIT(
inputfiles,preprocessor,outputfiles
,
PROC I16V I16V I16A
postprocessor,keysonly,numkeys,keys
,
I16A PROC PROC I16A I16
altseq,keycompare,errorproc,statistics,failure
,
I16 I16 I16A
errorparm,spaceallocation,charseq
);
Parameters
inputfiles
16-bit signed integer array (optional)
Passes the file identification numbers of the input files to be merged. The
last element of this array should be set to zero. If the files are opened with
either the NOBUF or MR (multirecord) access option (
aoption
), the MERGE
program performs the buffering and blocking/deblocking. $NULL is not a
valid input file.
preprocessor
procedure (optional)
Do not specify, maintain parameter position.
outputfiles
16-bit signed integer array (optional)
Passes the file identification number of the output file. The second array
element must be a zero, indicating the end of the array. If the files are
opened with either the NOBUF or MR (multi-record) access option (
aoption
),
the MERGE program performs the buffering and blocking/deblocking.
postprocessor
procedure (optional)
Do not specify, maintain parameter position.
length
16-bit signed integer
Denotes the number of characters in the record.
keysonly
16-bit signed integer by value (optional)
Passes a flag that determines if only keys are sent as output. If true, the
key fields are concatenated together with the major key on the left and the
remaining keys following. If false, the entire record is sent as output.
Default: false.
numkeys
16-bit signed integer (optional)