HPlogo SORT-MERGE/XL Programmer's Guide > Chapter 1 Introduction

Merging

MPE documents

Complete PDF
Table of Contents
Index

MERGE/XL only merges files that have already been sorted. For example, if you merge a file that contains information on newly hired employees with a file that contains information on current employees, each file must have the same record format and be sorted by the same information. If you merged two such files, each sorted by last name, you would get one output file with all employees sorted by last name. The output file would have the same information and format as the two input files.

Figure 1-3 MERGE/XL Operations

[MERGE/XL Operations]

The intrinsics used for merging are:
HPMERGEINIT

Initializes MERGE/XL utility and begins the merging operation (required).

HPMERGEERRORMESS

Returns error messages.

HPMERGEOUTPUT

Allows output to be by record (instead of file).

HPMERGEEND

Ends the merging operation (required).

HPMERGESTAT

Prints out merging statistics.

HPMERGETITLE

Prints out title information for MERGE/XL.


NOTE: For merging operations, use only the merge intrinsics. Do not mix sort and merge intrinsics.




Sorting


Keys