One of our Jobs abended with U4005.
We have identified from its corresponding COBOL code that this abend
arised while opening a VSAM dataset. The abend message was 'Error opening a vsam dataset of file status 37'.
The description of file-status 37 is
An OPEN statement was attempted on a file that would not support the open mode specified in the OPEN statement.
Possible violations are:
o The EXTEND or OUTPUT phrase was specified but the file would not
support write operations.
o The I-O phrase was specified but the file would not support the input
and output operations permitted.
o The INPUT phrase was specified but the file would not support read
operations.
Actually this abended job runs a cobol code with a input VSAM file. This file is opened in OUTPUT mode inside the cobol program.