FOR1920S
The statement statement for unit unit-number, which was connected to file-name, failed. The file definition referred to a file or device that was restricted to input only. Fortran Version 2 Error Number: AFB108I (format 7)

Explanation

The statement is an output statement, but the file definition (DD statement or ALLOCATE command) or the data set name given in the FILE specifier on the OPEN statement referred to a file or device that doesn't allow output operations. Examples of such files include:
  • An in-stream data set (DD *)
  • A data set whose DD statement specifies LABEL=(,,,IN)
  • A file for which the system's access control facility (such as RACF®) prevents you from updating the data set

System action

If the error occurred during the execution of an OPEN statement, the unit is no longer connected to a file. If neither the ERR nor the IOSTAT specifier is present on the I/O statement, the condition is signaled. If the condition is unhandled, the application is terminated.

Qualifying Data: Only the basic set of four qualifying data for I/O conditions as shown in Table 1. Within this basic set, parm_count has a value of 4.

Permissible Resume Actions:

Name Action Taken after Resumption
RN The I/O operation is not completed, and execution continues.

Programmer response

Ensure that I/O statement to be executed is consistent with the capabilities of the file or device referenced by the file definition (DD statement or ALLOCATE command) or by the data set name given in the FILE specifier on the OPEN statement. You might have to change either the file definition, the data set name, or the I/O statements used to process the file.

If you want to perform output operations on a file, don't refer to an input-only data set such as an in-stream data set (DD *), a data set for which you don't have RACF authority to update, or a data set whose DD statement has a LABEL=(,,,IN) parameter.

Symbolic Feedback Code

FOR1920