The following open modes and device types are invalid combinations: 1) opening the interactive terminal for update; 2) reading a display or printer; 2) writing to a character reader; 3) updating a magnetic tape device; 4) opening SYSIN or SYSOUT for 'append' or 'update'; 5) opening SYSIN for anything except 'read'; or 6) opening SYSOUT 'read'.
The fopen()/freopen() function fails.
Correct the open mode on the fopen()/freopen() call and/or verify the that the current device type is what is expected.
EDC4V0