Illustration of simple sort verb:
Illustration: Suppose that we have a card file with the following records description in the data division.
The names of the work file and output file are SORT-FILE and OUTPUT-FILE correspondingly. The DATA DIVISION entries for these two files are as shown below.
The statement below will sort the input file and will create the sorted output file.