COBOL Manual for TNS/E Programs (H06.03+)
Environment Division
HP COBOL Manual for TNS/E Programs—520347-003
6-52
I-O-CONTROL Paragraph
I-O-CONTROL Paragraph
The optional I-O-CONTROL paragraph specifies positioning information for a tape file
or the sharing of a memory area by more than one file. If the I-O-CONTROL paragraph
is present, it must follow the FILE-CONTROL paragraph, because it refers to files
established by file-control entries.
Sequential, relative, or indexed file:
Line sequential file:
Example 6-8. File-Control Entry for Sort-Merge File
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT SORT-FILE ASSIGN TO "#TEMP".
...
DATA DIVISION.
FILE SECTION.
SD SORT-FILE
RECORD CONTAINS 40 CHARACTERS.
01 SORT-FIELDS.
...
.
I-O-CONTROL
«RERUN clause»
SAME AREA clause
«MULTIPLE FILE clause»
.
VST057.vsd
.
I-O-CONTROL
«RERUN clause»
SAME AREA clause
.
VST632.vsd










