COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-59
COBOL85^SET^SORT^PARAM^VALUE and
COBOL_SET_SORT_PARAM_VALUE_
°
CREATE-NEW-OUTPUT
specifies whether the output (GIVING) file is to be created anew or the existing
output file is to be used.
subsort-or-file-number must not be specified or must be 0.
°
CREATE-NEW-SCRATCH
specifies whether the scratch file is to be created anew or the existing scratch
file is to be used.
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.
Allowable Value
for param-value Meaning
0 (default) If the output 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.
nonzero The file is purged and a new one is created.
Allowable Value
for param-value Meaning
0 (default) 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.
nonzero The file is purged and a new one is created.
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.