You have tried to open a line-sequential file in the input-output open mode, but this mode is not supported for files with this organization.
Resolution:
When your program has terminated you should recode your program to ensure that the file with organization line sequential is opened for input, output, or extend. You can then rerun your code.