COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-196
READ for Random or Dynamic Access
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
data-name
RECORD
INTO
WITH
TIME LIMIT wait-time
imperative-stmt-2
END-READ
LOCK
NOT INVALID
KEY
imperative-stmt-1INVALID
KEY
KEY key
IS
VST202.vsd