COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-200
RELEASE
•
See these usage considerations in READ for Sequential or Dynamic Access:
°
File-Status Data Item
°
LOCK Phrase
°
Interaction of LOCKFILE and READ LOCK Statements
°
INTO Phrase
°
GUARDIAN-ERR Special Register
°
Variable-Length Records
°
Use of wait-time
RELEASE
RELEASE, which must be within a SORT input procedure, sends the next input record
to the sorting process.
record-name
is a record-name in a sort-merge file description (SD) entry.
data-name
is the identifier of the item containing the record to be sent. Before the record is
sent, it is moved to record-name.
For more details and an example, see SORT.
Example 9-60. Reading a Random Indexed File
SELECT MASTER-IN ASSIGN TO "MASTER"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS INVOICE-NUMBER.
...
PROCEDURE DIVISION.
...
MOVE WS-INVOICE-NUMBER TO INVOICE-NUMBER
READ MASTER-IN
INVALID KEY PERFORM RANDOM-READ-ERROR-RTN
END-READ
record-nameRELEASE
data-nameFROM
VST203.vsd