COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
specifies a multiple-file tape reel. For more information on multiple files, see MULTIPLE FILE
Clause.
tape-file
is the name of a sequential file on magnetic tape, defined in a file-control entry and a file
description entry.
position
is a numeric literal with a value of 1 or more. It defines the relative position of tape-file
on a tape.
SAME AREA Clause for I-O Files
The SAME AREA clause advises the compiler that two or more files that are not sort-merge files
can use the same memory area during processing. Only one of these files can be open at any
given time.
RECORD
specifies that two or more files are to use the same memory area for processing the current
logical record.
same-file
is the sd-name in the sort-merge file description entry or the fd-name in the file description
entry for the file.
The compiler ignores the advice provided by the SAME AREA clause. For information on one way
files can share memory, see HP COBOL Fast I-O (Local Buffering) under File-Control Entries for
Sequential Files (page 118).
The SAME RECORD AREA clause specifies that two or more files use the same memory area for
processing the current logical record. Ordinarily, all the files can be open at the same time, but
see the restrictions on the usage of SAME clauses.
A logical record in the SAME RECORD AREA is considered a logical record of each opened output
file whose file name appears in this SAME RECORD AREA clause and of the most recently read
input file whose file name appears in this SAME RECORD AREA clause. This is equivalent to a
redefinition of the area—records are aligned on the leftmost character position.
140 Environment Division










