NBSpool for MPE Reference Guide

Chapter 3
3-42
MERGE
The
MERGE
command merges a subset of spool files together to form one new file. The order in
which the files will be merged is determined by the
SORT
command. If a range is specified, only
those lines within the range from each spool file will be merged. If the output file is a disk file, it
will be created if it does not exist. If it does exist, it will be purged unless a file equation has been
issued with the
ACC=APPEND
parameter.
The
MERGE
command will only retain data records in the output file. Therefore, environment
information, device control records, and forms messages will be stripped upon output. The
NOCCTL
parameter will strip all carriage control from the output file. If a file equation explicitly specifies
CCTL
and this keyword is specified, all carriage control will be converted to spaces. By default, a
form feed will be inserted between each spool file in the output. This may be suppressed by the
NOPAGE
parameter.
A delimiter string may also be inserted between spool files. The string will be inserted as a new
record between each spool file pair. If the
REPEAT
parameter is specified, the specified string will
be duplicated as many times as necessary in order to fill a record.
Note. Only ready spool files will be merged.
MERGE Syntax
O> MERGE [subset] ;FILE=filename
[;REC=[recsize]
[,[blkfact]
[,[F|V]
[,[ASCII|BINARY]]]]]
[;DELIM={[%]numeric} [,REPEAT]]
{string }
[;NEWPRI=outpri]
[;RANGE=range]
[;ASK]
[;EXPAND]
[;NOCCTL]
[;NOPAGE]
[;PURGE]
[;SAVECCTL]