COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-178
READ for Sequential or Dynamic Access
READ for Sequential or Dynamic Access
READ for sequential or dynamic access reads the next record in the file. (For
sequential access of line sequential files, see READ for Line Sequential Files.)
file-name
is the file description name of the file to retrieve a record from.
NEXT
indicates that the next record is to be read (that is, the record after the current
record, according to the key of reference). NEXT is required for sequential reading
of a relative, indexed, or queue file whose access is DYNAMIC.
REVERSED
indicates that the prior record is to be read (that is, the record before the current
record, according to the key of reference). For restrictions, see Restrictions on
REVERSED.
file-nameREAD
NEXT
END-READ
data-nameINTO
LOCK
PROMPT prompt-item
TIME LIMIT wait-time
NOT
AT
END imperative-stmt-2
AT
END imperative-stmt-1
WITH
RECORD
REVERSED
VST201.vsd