Download Print this page

HP 3000 Manual page 59

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

Advertisement

7
Chapter 7 Using XSORT Commands
Introduction
This section contains examples of the MPE commands necessary to run XSORT in interactive and job
stream modes. These examples also encompass the various input and output file options provided by the
utility.
Running XSORT
Extra Function Sort for RPG can be run in job stream or interactively. Streaming is the recommended
method because the program does not presently prompt for input.
On the following pages are examples of the MPE commands needed to run the program in several modes.
The grid below indicates the alternatives open to you. The vertical column on the left presents the ways in
which the specifications can be entered--either in job streams with specifications imbedded (or using the
formal file designator, XSORTEXT); or in sessions in which the data is entered interactively (or again,
using XSORTEXT). In the examples, the file equation XSORTEXT=$STDIN has been left out where it
would otherwise be used as that is the default setting for XSORTEXT.
The horizontal columns at the top of the grid show the choices open to you concerning input and output
files as well as the Count-only sort (SORTC) designated Example #9.
Each box in the grid contains the number of the example (or combination of examples) to refer to for the
sort to be run. To use the grid, you must determine what kind of sort you will require (whether it is an in
place sort or one using multiple input files, for example). Then you must determine your method of
running the program (in job stream using XSORTEXT, for example). You can find the means by which this
work can be successfully accomplished in the pages that follow and, if your needs are not explicitly covered,
it is possible to combine the information included in the examples to enter your requirements into the
system.
input to differ-
ent output
(doesn't already
exist)
Job Stream:
#1
Specs Imbedded
Job Stream:
#2
XSORTEXT
Session: Specs
#3
Interactive
Session: XSOR-
#4
TEXT (Case 1)
Session: XSOR-
#5
TEXT (Case 2)
Single file
Single file
input -- inplace
#6
(Combine)
#2 & #6
(Combine)
#3 & #6
(Combine)
#4 & #6
(Combine)
#5 & #6
Single file
Multiple input
input to differ-
ent output
already exist)
#7
#8
(Combine)
(Combine)
#2 & #7
#2 & #8
(Combine)
(Combine)
#3 & #7
#3 & #8
(Combine)
(Combine)
#4 & #7
#4 & #8
(Combine)
(Combine)
#5 & #7
#5 & #8
SORTC (count-
only)*
#9
(Combine)
#2 & #9
(Combine)
#3 & #9
(Combine)
#4 & #9
(Combine)
#5 & #9
7-61

Advertisement

loading