## 7.3.2 Direct Access WRITE Statements

Direct access WRITE statements transfer output data from internal storage to external records accessed under the direct mode of access. (The attributes of a direct access file are established by the OPEN statement.)

A direct access WRITE statement can be formatted or unformatted, and takes one of the following forms:

### Formatted

    WRITE (extu,rec,fmt [,iostat] [,err]) [iolist]

### Unformatted

    WRITE (extu,rec [,iostat] [,err]) [iolist]

extu
  Is an external unit specifier.
rec
  Is a record specifier.
fmt
  Is a format specifier.
iostat
  Is an I/O status specifier.
err
  Is a transfer-of-control specifier.
iolist
  Is the I/O-list specifier.

The control-list parameters are extu, rec, fmt, iostat, and err. The I/O list parameter is iolist.

For More Information:

- On control-list parameters, see Section 7.1.1.

- On the I/O list parameter, see Section 7.1.2.

- On rules for control-list parameters, see Section 7.1.1.1.

Previous Page Next Page Table of Contents