COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-292
WRITE
WRITE
WRITE delivers a record to its associated file.
Forms:
WRITE for Sequential Files
WRITE for Line Sequential Files
WRITE for Relative, Indexed, and Queue Files
WRITE for Sequential Files
record-name
is a logical record described in the File Section of the Data Division. The record-
name can be qualified by the name of the file with which the record is associated.
The data written is the current contents of record-name.
from-name
is the identifier of a data area whose contents are to be moved to the record
specified by record-name before the WRITE occurs. from-name must specify
a data area other than that specified by record-name. It also cannot specify an
index data item.
WRITE record-name
FROM from-name
ADVANCING clause
END-WRITE
end-of-page clause
invalid-key-phrase
not-end-of-page clause
not-invalid-key-phrase
NOT
NOT
VST236.vsd