Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Sort and merge without input/output procedures

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:

  1. One or more input files containing the records to be sorted or merged,

  2. 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:

  1. Opens the input and sort-files.

  2. Releases all the records in the input file to the sort-file.

  3. Closes input files.

  4. Sorts or merges the records on the sort-file.

  5. Opens output files.

  6. Returns the records from the sort-file to the output file.

  7. Closes the sort and output files.