FastSort Manual

Sorting in Parallel
FastSort Manual429834-003
6-2
Using Commands for Parallel Sorting
This section gives guidelines for using FastSort commands, procedures, and
parameters for parallel sorting. For more information about commands, see Section 3,
Using FastSort Commands and for more information about procedures, see Section 5,
Using FastSort System Procedures. For information about using partitioned input and
output files, see Partitioned Files on page C-5.
Using Commands for Parallel Sorting
To use FastSort commands to set up a parallel sort run, follow these steps:
1. Name and describe any input and output files in FROM and TO commands.
2. Define your key fields for sorting in one or more ASCENDING or DESCENDING
commands or a combination of both.
3. If you want to use an alternate collating sequence, name a file containing the
sequence in the COLLATE command.
4. Set up individual subsort processes with SUBSORT commands, one command for
each process. For more information, see Using the Automatic Configuration
on
page 6-4 and Configuring Subsort Processes
on page 6-6.
Figure 6-1. Parallel Sorting
Input File
$DATA2
Input File
$DATA3
$WORK1
Scratch file
$WORK2
Scratch file
Input File
$DATA1
$WORK3
Scratch file
VST601.vsd
Subsort
Process 2
Subsort
Process 1
Subsort
Process 3
Subsort
Process 3
Processor 1
Processor 2
Processor 3
Distributor
Collector
Process
Processor 0