SORT-MERGE/XL General User's Guide (32650-90883)
Chapter 6 91
SORT-MERGE/XL Commands
OUTPUT (MERGE/XL)
key, the following message is displayed:
ENTER NEW NAME FOR OUTPUT FILE
If this prompt is displayed, enter a new name for the output file.,
If this situation occurs in batch mode, the old file is not disturbed. Instead a new
permanent file, OUTPUT
nn
(
n
is a non-negative integer) is created and the following
message displayed:
OUTPUT FILE CLOSED WITH FILE NAME OUTPUT
nn
If the above message is displayed the Job Control Word (JCW) is set to FATAL and the job
aborts in an error state.
EXAMPLES
The following is an example of using the MERGE/XL >OUTPUT command in interactive
mode:
:MERGE
HP32214A.01.00 MERGE/3000 THU, JUN 4, 1987, 10:00 AM
© HEWLETT-PACKARD CO. 1986
>INPUT EMPLOYEE, NEWHIRES
>OUTPUT COMPANY
>KEY 12, 11
>END
PURGE OLD OUTPUT FILE COMPANY.GROUP.ACCOUNT. ? YES
STATISTICS
NUMBER OF INPUT FILES = 2
NUMBER OF RECORDS = 20
SPACE AVAILABLE (IN WORDS) = 11,164
NUMBER OF COMPARES = 18
CPU TIME (MINUTES) = .00
ELAPSED TIME (MINUTES) = .01
The two files EMPLOYEE and NEWHIRES are sorted files that are being merged into the new
file COMPANY.
ADDITIONAL DISCUSSION
Refer to the >OUTPUT command for SORT/XL in this chapter.