## 10.5.2 Forms for Direct-Access WRITE Statements

Direct-access WRITE statements transfer output data to external records with direct 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 (eunit, format, rec [, iostat] [, err]) [io-list]
  Unformatted:
  WRITE (eunit, rec [, iostat] [, err]) [io-list]
  eunit
  Is an external unit specifier ([UNIT=]io-unit).
  format
  Is a format specifier ([FMT=]format). It must not be an asterisk (*).
  rec
  Is a record specifier (REC=r).
  iostat
  Is a status specifier (IOSTAT=i-var).
  err
  Is a branch specifier (ERR=label) if an error condition occurs.
  io-list
  Is an I/O list.

For More Information:

- On I/O control-list specifiers, see Section 10.2.1.
- On I/O lists, see Section 10.2.2.

Previous Page Next Page Table of Contents