Sort status is like ‘File status’ in COBOL. With sort status clause, you can get sort or merge successful or not in the COBOL.
The syntax is:
Select file-name assign to dd-name
Sort Status IS data-name1.
It is two-char field. In the case of Sort/merge error, it shows appropriate error.
The below are optional in COBOL sort.
- Record Contains
-
Data Records
-
Value of File-id





