COBOL Manual for TNS/E Programs (H06.03+)

Libraries and Utility Routines
HP COBOL Manual for TNS/E Programs520347-003
13-40
COBOL_SET_SORT_PARAM_VALUE_
subsort-or-file-number must not be specified or must be 0.
°
DATA-SLACK
specifies a percentage of slack space in each data 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.
°
IN-FILE-COUNT
specifies the number of records that will be sorted from each input file or that
will be supplied by an input procedure. FastSort uses it to determine the size of
the scratch file.
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.
Allowable Value for
param-value Meaning
-1 (default) FastSort uses a default based on the file assigned. For disk
files, FastSort calculates a number based on the file size.
For tape files or if an input procedure is used, the default is
50K.
1 - 2,147,483,647 Number of records that will be sorted from each input file or
that will be supplied by an input procedure.
Allowable
Value for
param-value Meaning
-1 Default (exclusive for disk or tape, shared for any other file type)
0Shared
1 Exclusive
3Protected