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

Meaning
Allowable Value for
param-value
If the scratch file exists and is large enough for the sort, the data is purged
from the file. If the file is too small, the file is purged and a new one is
created.
0 (default)
The file is purged and a new one is created.nonzero
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.
Meaning
Allowable Value for
param-value
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 (default)
Number of records that will be sorted from each input file or that will be
supplied by an input procedure.
1 - 2,147,483,647
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.
Meaning
Allowable Value for
param-value
Default (exclusive for disk or tape, shared for any other file type)-1
Shared0
Exclusive1
Protected3
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.
628 Libraries and Utility Routines