Loading...
Select Version
If no input or output procedures are specified, the compiler will generate procedures to take charge of record input/output. In this case the user must describe the following files:
One or more input files containing the records to be sorted or merged,
One sort-file and one or more output files to which the records will be returned.
When referenced, a SORT or MERGE statement performs the following functions:
Opens the input and sort-files.
Releases all the records in the input file to the sort-file.
Closes input files.
Sorts or merges the records on the sort-file.
Opens output files.
Returns the records from the sort-file to the output file.
Closes the sort and output files.