FORTRAN 77 Language Reference


Execution proceeds as follows:

  1. The file associated with the specified unit is determined.

    The format, if specified, is established. The file is positioned appropriately prior to data transfer.

  2. If the output list is not empty, data is transferred from the list to the file.

    Data is edited according to the format, if specified.

  3. In the second form of namelist-directed WRITE, the data is transferred from the items of the specified namelist group according to the rules of namelist-directed output.

  4. The file is repositioned appropriately after the data transfer.

  5. If ios is specified, and no error occurs, it is set to zero; otherwise, it is set to a positive value.

  6. If s is specified and an error occurs, control is transferred to s.