Sort Specifications [ HP RPG/XL Utilities-Part 1 XSORT ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 1 XSORT
Sort Specifications
The specifications for our sort, if entered in the XSORT specification
forms, would look like this:
A brief explanation of each specification follows.
Header Specifications
Column Entry Explanation
--------------------------------------------------------------------------------------
1-5 blank No line numbers are required.
6 H The H designates this as the Header specification for the
sort.
7-12 SORTR SORTR indicates that this is a Record-out sort.
13-17 4 Largest sum of control field lengths for any record section,
in bytes. In this sort the total is 4.
18 A Records are to be sorted in ascending order by control
field.
28 X Control fields are to be dropped on output in this sort.
29-32 33 33 is the length of the output records in this sort. It
includes only the length of the data fields since the
control fields are being dropped.
S Option Specifications
Column Entry Explanation
--------------------------------------------------------------------------------------
1-5 blank No line numbers are required.
6 S Indicates that this is the S Option specification for the
sort.
8 Y XSORTOUT may already exist and be a different file than
XSORTIN.
10-16 35 Maximum number of records to be sorted.
Record Type Specifications
Column Entry Explanation
--------------------------------------------------------------------------------------
1-5 5 Line number (optional).
6 I This is an include line. All records described will be
included in the sort.
8 C Use full characters.
13-16 33 The factor 1 field, which is only one character long, ends
at this position.
17-18 NE Factor 1 must not equal factor 2.
19 C Factor 1 is a constant.
20 X This is the factor 2 constant.
Field Description Specifications
Column Entry Explanation
--------------------------------------------------------------------------------------
1-5 10,20,30 Line numbers (optional).
6 F These are field description lines.
7 N This is a normal control field. This is a data field.
D This is a data field.
8 C Use full characters in the field. Force a data character
into the data field.
V Force a data character into the data field
9-12 6,1 These are the starting positions of the data fields in the
records.
13-16 9,32 These are the ending positions of the data fields in the
records.
18 * This is the character you are forcing by using your column 8
entry.
MPE/iX 5.0 Documentation