COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-230
SORT
outfile
is a file description name. During execution of the SORT statement, outfile
must be closed and cannot be locked.
Usage Considerations:
Using the Features of FastSort
Three utility routines that enable you to control the features of FastSort (such as
multi-processor parallel sorting) are:
For descriptions of the preceding routines, see Section 13, Libraries and Utility
Routines.
How the Scratch File is Determined
In this explanation, if a scratch file is specified but its value is all spaces, assume
that no scratch file was specified.
If COBOL_SET_SORT_PARAM_TEXT_ specifies a SCRATCH-FILE, then that file
is the scratch file.
If the SELECT statement associated with sd-name specifies the
=_SORT_DEFAULTS DEFINE as the define-name-literal, then:
°
If the =_SORT_DEFAULTS DEFINE exists and specifies a scratch file, then
that file is the scratch file.
°
If the =_SORT_DEFAULTS DEFINE exists but does not specify a scratch file,
then a temporary file on the volume $SYSTEM is the scratch file.
°
If no =_SORT_DEFAULTS DEFINE exists, then a temporary file on the volume
$SYSTEM is the scratch file.
°
If the SELECT statement associated with sd-name does not specify the
=_SORT_DEFAULTS DEFINE as the define-name-literal, then the file
that the SELECT statement specifies is the scratch file.
For instructions for creating the =_SORT_DEFAULTS DEFINE, see the FastSort
Manual.
How the Volume of the Temporary Swap File is Determined
The operating system assigns a swap file to swap pages in and out of memory
while the compiler is running. The swap file mirrors all of the data areas that the
compiler uses. The ideal swap file is a fast device that is neither busy nor mirrored.
To redirect the swap file, give define-name-literal the value
=_SORT_DEFAULTS.
Non-CRE Routine CRE Routine
COBOL85^SET^SORT^PARAM^VALUE COBOL85_SET_SORT_PARAM_VALUE_
COBOL85^SET^SORT^PARAM^TEXT COBOL85_SET_SORT_PARAM_TEXT_
COBOL85^RETURN^SORT^ERRORS COBOL85_RETURN_SORT_ERRORS_