HP RPG/XL Utilities-Part 1 XSORT MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 1 XSORT
Table of Contents
HP RPG/XL Utilities-Part 1 XSORT
HP RPG/XL Utilities-Part 1 XSORT : COPYRIGHT NOTICE
Introduction
Characteristics of XSORT:
How XSORT Works
Three Types of Sort
Running the XSORT Program
Supplying the Sort Specifications
MPE Commands and Their Uses
Your MPE Commands Provide:
Use of the MPE RESET Command:
Input Files
Work Space
Output File
Data and Timing
Overview of XSORT Specifications
Header Specifications
Introduction
Header Specification Column Entries
Columns 1-5 Line Number
Column 6 Line Type
Columns 7-12 Type of Sort
Columns 13-17 Largest Sum
Column 18 Ascending or Descending Sequence
Column 26 Collating Sequence
Column 27 Print Option
Column 28 Output Option for Record-Out Sort
Reasons for Dropping Control Fields
Column 29-32 Output Record Length for Record-Out Sorts
Calculating Output Record Length Fields
Column 33-39
Column 40-80 Job Description Comments
Alternate Collating Sequence Specifications
Rules for Coding ALTSEQ
Specs Order Using ALTSEQ
Programming with ALTSEQ
Effect of ALTSEQ Statements on Other Coding
Sample ALTSEQ Statements
Special Option Specification
Column Entries
Columns 1-5 Line Number
Column 6 Line Type
Column 7 Address-Out File First Record Number
Column 8 In Place Sort Override
Columns 10-16 Maximum Number of Records to be Sorted
Columns 17-39
Columns 40-80 Comments
Record Type Specifications
Record Types
Sections
Sets
Column Entries
Columns 1-5 Line Number
Column 6 Line Type
Column 7 Continuation or Comments
Columns 6 and 7 Relating Entries
Column 8 Data Type
Importance of the Column 8 Entry
Columns 9-16 Factor 1 Field
Columns 17-18 Type of Comparison
Column 19 Field or Constant
Columns 20-27 Factor 2 Field
Columns 20-80 Factor 2 Constant
Columns 40-80 Comments
Field Description Specifications
Columns 1-5 Line Number
Column 6 Line Type
Column 7 Field Type or Comments
Control Fields (N, O, or F) Entries
Conditional Force
Unconditional Force
Data Fields (D) Entry
Comment Lines (*) Entry
Column 8 C, P, U, or V
Packed Control Fields (Normal or Opposite)
Columns 9-16 Field Locations
Field Length
Column 17 Conditionally Forced Characters
Column 18 Forced Character
Column 19 Continuation
Summarizing Force Character Entries
Examples Using Forced Control Characters
Columns 20-39
Columns 40-80 Comments
Using XSORT Commands
Running XSORT
About the Sample Sort
Sort Specifications
About the Job Stream Examples
XSORT Applications
Application ##1
Application ##2
Application ##3
COMPATIBILITY WITH OTHER SYSTEMS
Comparison with $DSORT and ##GSORT
ERROR MESSAGES
Syntax Messages
General Errors
Header Errors
Alternate Collating Sequence Errors
S Option Errors
Record Type Errors
Field Description Errors
Unnumbered Errors
Execution Messages
DATA INFORMATION
XSORT SPECIFICATION FORMS
MPE/iX 5.0 Documentation