COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-64
COBOL85^SET^SORT^PARAM^VALUE and
COBOL_SET_SORT_PARAM_VALUE_
°
SCRATCH-CHECK
specifies whether FastSort must check the size of each named scratch file to
see whether it is large enough.
Nonzero is the default for HP COBOL—the default for the FastSort product by
itself is 0).
subsort-or-file-number must not be specified or must be 0.
When the param-value associated with SUBSORT-COUNT is nonzero,
each subsort requires a scratch file. You must first call
COBOL85^SET^SORT^PARAM^TEXT or
COBOL_SET_SORT_PARAM_TEXT_ once for each subsort, specifying a
param-id of SCRATCH-FILE, a param-text giving a name for the scratch
file (usually just a volume name), and a subsort-number.
°
SECOND-BUFFER
specifies whether FastSort must use a second buffer.
subsort-or-file-number must not be specified or must be 0.
°
SEGMENT
specifies the size of the extended memory area, in pages.
Allowable Value
for param-value Meaning
0 FastSort must check scratch file size.
nonzero (default) FastSort must not check scratch file size.
Allowable Value for
param-value Meaning
0 (default) FastSort does not use a second buffer.
nonzero FastSort uses a second buffer, which is allocated in user
data space.
SECOND-BUFFER is ignored under any of these conditions:
There is not enough space for a second buffer.
NOWAIT-IO is not specified.
The operation is a merge and none of the USING files
are magnetic tape files.
Allowable Value for
param-value Meaning
-1 (default) Segment size is controlled by the MINSPACE and MINTIME
parameters. The size cannot be more than 90% of the
processor’s physical memory not locked down by the
NonStop operating system.
64 - 8192(16 MB) Size of the extended memory area, in pages.