FOR1436S
The OPEN statement could not connect unit unit-number to file-name. The file definition referred to a concatenation of data sets, and the STATUS specifier had a value of REPLACE.

Explanation

The file definition (DD statement or ALLOCATE command) referred to a concatenation of data sets, that is, to a sequence data sets that was to be processed as though it consisted of a continuous sequence of records in a single file. The STATUS specifier on the OPEN statement had a value of REPLACE, which implied that this file was to be deleted and recreated. This deletion and recreation cannot be done for a file that is a concatenation of data sets.

System action

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, statement has a value of READ, and parm_count has a value of 4.

Permissible Resume Actions:

Name Action Taken after Resumption
RN The OPEN statement is not completed, and execution continues.

Programmer response

Ensure that the file definition refers to the file that you intended.

If the file that you want to process is a concatenation of data sets, either remove the STATUS specifier on the OPEN statement or change its value to OLD or UNKNOWN. You won't be able to delete the existing file.

If the logic of your program requires that the file be deleted and recreated, change the file definition to refer to a file or a device that supports file deletion.

Symbolic Feedback Code

FOR1436