HPlogo SORT-MERGE/XL Programmer's Guide

SORT-MERGE/XL Programmer's Guide: 900 Series HP 3000 Computer Systems

MPE documents

Complete PDF
Table of Contents
Index

HP Part Number: 32650-90884

Edition:

Published: E0300

Notice

Table of Contents
Preface
1 Introduction
Processing a Sort or Merge
Sorting
Merging
Keys
Error Checking
Large File Support
2 Creating Core Routines That Sort and Merge
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
3 Input and Output by Record
Using Record Input and Output
Record Input
Example of Record Input
Record Output
Example of Record Output
4 Altering the Collating Sequence
Sorting and Arranging
Altering the Sequence
Example of Using an Altered Sequence
Using a Native Language Sequence
Getting the Language ID
Specifying Parameters
5 Getting SORT-MERGE/XL Information
Redirecting Output
Getting Statistical Information
Example of Getting Sort/Merge Statistics
Getting Version and Title Information
Example of Using HPSORTTITLE
A HPSORT Intrinsic Status Returns
B HPMERGE Intrinsic Status Returns
C ASCII/EBCDIC Table
D FORTRAN Program Examples
Example of Core Sorting Routine
Example of Core Merging Routine
Example of Record Input
Example of Record Output
Example of Using an Altered Sequence
E Data Types
HP Business BASIC
HP C/XL
HP COBOL II/XL
HP FORTRAN 77/XL
HP Pascal
Index
List of Figures
1-1 Flowchart of Intrinsic Order
1-2 SORT/XL Operations
1-3 MERGE/XL Operations
1-4 Key Comparing Operations
2-1 Core Routine
3-1 Record Input and Output
4-1 Running NLUTIL
5-1 Getting Information
List of Tables
C-1 ASCII/EBCDIC Character Sets
E-1 Business BASIC Equivalents of SORT-MERGE/XL Data Types
E-2 HP C XL Equivalents of SORT-MERGE/XL Data Types
E-3 HP COBOL II/XL Equivalents of SORT-MERGE/XL Data Types
E-4 HP FORTRAN 77/XL Equivalents of SORT-MERGE/XL Data Types
E-5 HP Pascal Equivalents of SORT-MERGE/XL Data Types
List of Examples
3-1 SORTREC_IN Program
3-2 SORTREC_OUT Program
4-1 SORTALT Program
D-1 SORTFILE Program
D-2 MERGEFILE Program
D-3 SORTREC_INPUT Program
D-4 SORTREC_OUTPUT Program
D-5 SORTALT Program




Index


Preface