Three Types of Sort [ HP RPG/XL Utilities-Part 1 XSORT ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 1 XSORT
Three Types of Sort
Figure 1-2 illustrates XSORT's sort capability--Address-out, Record-out,
and Count-only.
Figure 1-2. Three Types of Sort
Address-Out Sort (SORTA)
The output from an Address-out sort job consists of 4-byte binary
relative record numbers of the records in the input file.
An Address-out sort allows you to process a file in sorted order without
using up disk or tape space copying the entire file in order to process
it.
Record-Out Sort (SORTR)
The output from a Record-out sort is a file of complete records that are
immediately available for processing. These sorted records can contain:
* Control fields and data.
* Control fields only.
* Data only.
A Record-out sort offers faster processing than the Address-out as well
as enabling you to reformat files and to create new files from
reformatted records.
Count-Only Sort (SORTC)
This sort performs a Count-only pass on the input files.
Using a Count-only sort, XSORT can provide you with a statistical
analysis of the sort without actually performing the sort or producing an
output file.
MPE/iX 5.0 Documentation