COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-60
COBOL85^SET^SORT^PARAM^VALUE and
COBOL_SET_SORT_PARAM_VALUE_
Large sorts (greater than 50K records) may terminate abnormally with the
scratch file being too small if record-count is not used for sorts using tapes
or sorts using an input procedure. Small sorts may use more system resources
than necessary.
If subsort-or-file-number specifies a file number, it must be in the range
1 through 32. The number is the ordinal number of a USING file (from left to
right in the USING phrase of the next SORT statement that is executed). If an
input procedure is to be used, subsort-or-file-number should be
omitted or should be one.
°
IN-FILE-EXCL
specifies the exclusion mode with which the sort opens a USING file.
If subsort-or-file-number specifies a file-number, it must be in the
range 1 through 32. The number is the ordinal number of a USING file (from
left to right in the USING phrase of the next SORT statement that is executed).
If subsort-or-file-number is omitted, the first file is assumed.
°
INDEX-SLACK
specifies a percentage of slack space in each index block for an indexed
output file. It is applicable only if one GIVING file is specified and that file is an
indexed file.
The value of param-value is in the range 0 through 99. The default is 0.
subsort-or-file-number must not be specified or must be 0.
°
MINSPACE
specifies whether FastSort is to operate in the MINSPACE mode; that is,
whether FastSort should attempt to restrict the use of physical memory at the
expense of sort time.
Allowable
Value for
param-value Meaning
-1 Default (exclusive for disk or tape, shared for any other file type)
0Shared
1 Exclusive
3Protected
Allowable Value
for param-value Meaning
0 (default) FastSort uses up to 50% of the available physical memory. This
may result in loss of overall system performance if the system is
busy.
nonzero FastSort uses a 64-page extended memory area.