If the output from sorting or merging is a file, describe the file by following the procedure below.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT Output-File ASSIGN TO OutFile.
Output-File is the name of the file in your program. Use this name to refer to the file.
DATA DIVISION.
FILE SECTION.
FD Output-File
RECORD CONTAINS 100 CHARACTERS.
01 Output-Record PIC X(100).related tasks
Coding the output procedure
Requesting the sort or merge
related references
FILE SECTION entries