When opening a sequential file that does not have an associated profile file, you must supply the file organization and record length. To determine the file organization, look at the Data Division of the COBOL program that uses the data file, and under the Input-Output section, look at the SELECT statement. Use the following table to determine the file organization:
SELECT statement contains | File Organization |
---|---|
ORGANIZATION IS SEQUENTIAL | Line sequential |
ORGANIZATION IS LINE SEQUENTIAL | Line sequential |
LINE SEQUENTIAL | Line sequential |
SEQUENTIAL | Line sequential |
ORGANIZATION IS RECORD SEQUENTIAL | Fixed-length sequential |
RECORD SEQUENTIAL | Fixed-length sequential |
ORGANIZATION IS RELATIVE | Fixed-length relative |
RELATIVE | Fixed-length relative |