4.7.29
WRITE
4-74
The WRITE statement releases a logical record from the output record area
to the input-output control system which writes the record on an external
device as part of an output file.
Format 1:
WRITE record-name [FROM identifier-I]
[l
BEFORE/
AFTER
Format 2:
{
identifier-2 LINES}]
ADVANCING
integer
~INES
mnemonlC-name
WRITE record-name [FROM identifier-I]
; INVALID KEY imperative-statement
Format
1
is used to process non -mass storage files. The ADVANCING option
allows the user to specify vertical position of the printer. Format 2 is used
to process mass storage files . INVALID KEY specifies an imperative
statement to be executed if an attempt is made to write outside the allocated
file area.
An OPEN statement must be executed for a file before a WRITE statement
for that file can be executed.
Record name is the name of a logical record
in
the File Section of the Data
Division; it must not name a sort file. After the WRITE is executed, record
name is no longer available.
The FROM option is used to move a record from the area
in
memory specified
by identifier-I to the output record area and simultaneously release this
record to the input-output control system. The record is moved
in
accordance
with the rules for a simple MOVE. Record name may not be the same as
identifier-I.
Format
1:
When WRITE is specified for a multi -reel tape file, the following operations
are performed after an end-of-reel condition is recognized:
60229400
Need help?
Do you have a question about the 3300 and is the answer not in the manual?