COBOL Manual for TNS/E Programs (H06.03+)
Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS/E Programs—520347-003
19-18
READ Statement
extfile
is the file description file name of a sequential file to open in EXTEND mode,
for write operations that append records to the file. The file is positioned after
the last logical record when opened. All operations on the file must be write
operations, as if the file had been opened in OUTPUT mode. If the file is an
Enscribe unstructured file, its size must be a multiple of the record size.
SHARED
PROTECTED
EXCLUSIVE
are the same as described earlier for infile.
READ Statement
The READ statement for a line sequential file has this syntax:
file-name
is the file description name of the file to retrieve a record from.
data-name
is the identifier of the data area defined by your program to which the contents of
the record area are transferred after the read operation is complete.
data-name cannot be an index-name or the identifier of an index data item. The
transfer is conducted as if it were a move from an alphanumeric item to an
alphanumeric item.
file-nameREAD
END-READ
data-nameINTO
NOT
AT
END imperative-stmt-2
AT
END imperative-stmt-1
VST630.vsd










