SORT-MERGE/XL General User's Guide (32650-90883)
90 Chapter6
SORT-MERGE/XL Commands
OUTPUT (MERGE/XL)
OUTPUT (MERGE/XL)
The >OUTPUT command is used to designate and create the output file, which is to receive
the merged records. Refer to the SORT/XL >OUTPUT command for information on how to
use the command within that subsystem.
SYNTAX
{
fname
}
>O[UTPUT] { } [,
num records
][, KEY]
{$STDLIST}
PARAMETERS
NOTE
In interactive mode the default is NOCCTL. In batch mode the default is CCTL
(first byte stripped). To force NOCCTL in batch mode issue the following file
equation:
:FILE OUTPUT; DEV=LP; NOCCTL
In this case, do not issue an output command to MERGE/XL.
DISCUSSION
If more than one >OUTPUT command is issued, only the last one is effective.
If no >OUTPUT command is issued, MERGE/XL creates an output file with the name
OUTPUT.
If a file already exists with the same name specified in the >OUTPUT command, during an
interactive session, the following message is displayed:
PURGE OLD OUTPUT FILE
filename
?
If the response is YES the old file is purged. If the response is NO or you press the
Return
fname
& The
fname
parameter represents the actual file designator.
$STDLIST & Using this parameter specifies that the output is to & be sent to
$STDLIST. The & output file is not saved when this parameter is used.
num records
This parameter should be specified only if one or more input files are not
on disc. (It is ignored if all input files are disc files.) It is a positive integer
specifying the upper limit of the number of records to be merged and is
used as the
filesize
parameter during the opening of the output file. If
one or more of the files is not on disc and the parameter is not specified, a
default value of 10,000 records is used.
KEY Specifies that the output file is to consist of the key fields only, with the
major key field on the left.