FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-8
SORTBUILDPARM Procedure
Using Buffers in Extended Addresses
If buffer or buffer2 is an extended address, the address must be relative. It cannot
be an absolute extended address. The extended segment must be allocated and in
use when the FastSort library procedures are called. Do not deallocate or decrease the
size of the extended data segment after calling SORTBUILDPARM. An invalid
extended address causes an illegal address trap.
Example
build^status := SORTBUILDPARM (sortblock,,,
blockbuf,
dblbuff,
8192);
Figure 5-2. Sending and Receiving Blocked Records
User Application process
Message
containing a
block of
unsorted
records
SORTPROG
process
SORTBUILDPARM
SORTMERGESTART
SORTMERGESEND
SORTMERGERECEIVE
SORTMERGEFINISH
Define buffer
One record at a time
Double
Buffer
Message
containing a
block of
sorted records
One record at a time
VST502.vsd