HP RPG/iX Utilities Reference Manual (30318-90006)

8- 80
B0001X TX 60 SECTION-B, OTHER 09000112 00004000
B0113M FL 20 SECTION-A, TYPE-4 08000860 00005000
B9001M CA 51 SECTION-B, OTHER 05000525 00006000
B9001M CA 72 SECTION-B, OTHER 05000501 00007000
09059Z FL 01 SECTION-B, TYPE-3 08000801 00008000
C0001Y CA 99 SECTION-B, OTHER 05000602 00009000
C0113Z NY 20 SECTION-B, TYPE-3 02503000 00010000
C9001M CA 99 SECTION-B, OTHER 05009999 00011000
C9001Y OR 17 SECTION-A, TYPE-2 06000250 00012000
C9059Z CA 10 SECTION-B, OTHER 05000980 00013000
C9059z CA 35 SECTION-B, OTHER 05000500 00014000
C9059Z CA 87 SECTION-B, OTHER 05000970 00015000
D0001Y FL 02 SECTION-A, TYPE-3 08000700 00016000
D0113M TX 09 SECTION-B, OTHER 09000850 00017000
D9059Y NY 50 SECTION-A, TYPE-2 02502140 00018000
W9001X FL 13 SECTION-A, TYPE-1 08000750 00019000
1-6 12 23 26 51 58 73 80
Positions
The record portion designated "description" is used to highlight the purpose of the sort. Both sections will
be sorted by item and class, and in Section B line numbers will also be used.
Here is the output file produced by the sort.
A0001X CA 01 SECTION-A, TYPE-1 05001021
* B0001X TX 60 SECTION-B, OTHER 09000112 00004000
* C0001Y CA 99 SECTION-B, OTHER 05000602 00009000
D0001Y FL 02 SECTION-A, TYPE-3 08000700
B0113M FL 20 SECTION-A, TYPE-4 08000860
* D0113M TX 09 SECTION-B, OTHER 09000850 00017000
* B9001M CA 51 SECTION-B, OTHER 05000525 00006000
* B9001M CA 72 SECTION-B, OTHER 05000501 00007000
C9001Y OR 17 SECTION-A, TYPE-2 06000250
* C9001M CA 99 SECTION-B, OTHER 05009999 00011000
W9001X FL 13 SECTION-A, TYPE-1 08000750
* A9059Z CA 57 SECTION-B, OTHER 05002001 00003000
* C9059Z CA 10 SECTION-B, OTHER 05000980 00013000
* C9059Z CA 35 SECTION-B, OTHER 05000500 00014000
* C9059Z CA 87 SECTION-B, OTHER 05000970 00015000
D9059Y NY 50 SECTION-A, TYPE-2 02502140
NOTE The file is in order first by item# (output positions 3-6), then by class number (output
position 2), and then by line# (positions 73-80) for records in Section B. In addition,
Section B records are "flagged" by an asterisk in output position 1 and by the input
line# in position 73-80.
Application #3
This application is in three parts. Each part is a sample job typical of the work XSORT was designed to
address in the field. The jobs use the same files in a variety of ways for different sort requirements. Each
of the three sample jobs included is presented with an introduction, XSORT specifications entered on the
form, and a discussion of the specifications.