Cob
How Do You Sort Files In Cobol?
Following is the syntax to sort a file: SORT work-file ON ASCENDING KEY rec-key1 [ON DESCENDING KEY rec-key2] USING input-file GIVING output-file. SORT performs the following operations: Opens work-file in the I-O mode, input-file in the INPUT mode and output-file in the OUTPUT mode. How does sort work in COBOL? Read more…