FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-20
SORTMERGESTART Procedure
FastSort through a program. A COBOL85 program can call SORTMERGESTART
through the SORT or MERGE statement.
status returned value
INT
returns a FastSort error code if an error occurred; if not, returns 0.
ctlblock input
INT:ref:200
is a 200-word integer array that FastSort procedures use as an internal control
block to store information. After the calling process declares ctlblock, it must not
alter any values in the control block between the call to SORTMERGESTART and
the call to SORTMERGEFINISH; otherwise, the SORTPROG process returns a
FastSort error code and stops. Also, do not rely on the information in ctlblock,
because this information can change without warning.
{ status := } SORTMERGESTART ( ctlblock ! i
{ CALL } ,key-block ! i
,[ num-merge-files ] ! i
,[ num-sort-files ] ! i
,[ in-file-name ] ! i
,[ in-file-exclusion-mode ] ! i
,[ in-file-count ] ! i
,[ in-file-record-length ] ! i
,[ format ] ! i
,[ out-file-name ] ! i
,[ out-file-exclusion-mode ] ! i
,[ out-file-type ] ! i
,[ flags ] ! i
,[ errnum ] ! o
,[ errproc ] ! i
,[ scratch-file-name ] ! i
,[ scratch-block ] ! i
,[ process-start ] ! i
,[ max-record-length ] ! o
,[ collate-sequence-table ] ! i
,[ dslack ] ! i
,[ islack ] ! i
,[ flags2 ] ! i
,[ subsort-count ] ! i
,[ spare5 ] ) !
reserved