HPlogo SORT-MERGE/XL Programmer's Guide > Chapter 2 Creating Core Routines That Sort and Merge

Chapter 2 Creating Core Routines That Sort and Merge

MPE documents

Complete PDF
Table of Contents
Index

Table of Contents
Structure of the Core Routines
Initializing a Sort or Merge
Specifying Input
Specifying Output
Specifying Keys
Specifying Data and Sequence
Using HPSORTINIT
Using HPMERGEINIT
Ending Sorting or Merging
Error Checking
Example of Core Sorting Routine
Example of Core Merging Routine
This chapter describes two sets of operations: a basic sort and a basic merge. The procedure development is described step by step. The complete examples are at the end of the chapter. These core routines use a minimum set of operations to do a simple sort and merge.

These examples take input from two files and return output to one file. They use the standard ASCII collating sequence. Other options are discussed in other chapters.




Large File Support


Structure of the Core Routines