Download Print this page

HP 3000 Manual page 60

Mpe/ix computer systems, rpg/xl utilities
Hide thumbs Also See for 3000:

Advertisement

Case 1 - XSORTIN-and XSORTOUT are disk files.
Case 2 - XSORTIN=$STDIN and XSORTOUT=$STDLIST.
* Example #9 uses single file input. Count-only (SORTC) can also be used with multiple file input. To
determine the appropriate commands for a multiple file SORTC, see Example #8 regarding how it specifies
multiple input files (XSORTIN1...XSORTIN9).
About the Sample Sort
A very simple sort was devised for these examples. The input file, named TSTIN, consists of five records.
The specifications for most of the examples, whether entered by the user or supplied by the file, TSTSPEC,
are these:
In examples 5 and 8, it is necessary to include an S Option specification for reasons which are explained
later. A file, TSTSPEX, which includes the S Option specs, was created for these examples. The entry in
columns 10-16, which limits the "maximum number of records to be sorted", is set for Example 8.
In Example 7, a file named TSTFILE, which exists previous to the sort, is overlaid by the sorted file.
TSTFILE does not appear in the example as printed.
Sort Specifications
The specifications for our sort, if entered in the XSORT specification forms, would look like this:
7-62
AB123GSD212345
JONES
AB234CICO12345
ALBERS
AC102GSD100001
WOODSON
AC321ABCD10001
FRANKEN
BB222CICO12345
WOODS
00000HSORTR
4A
00005I C
33NECX
00010FNC
6
9
00020FDC
1
32
00030FDV
00000HSORTR
4A
00000S Y
35
00005I C
33NECX
00010FNC
6
9
00020FDC
1
32
00030FDV
X
X
33
*
X
33
*

Advertisement

loading