Joined: 25 Aug 2010 Posts: 23 Location: Pune, India
I have a COBOL program where I am READING and WRITING into the same VSAM-KSDS. The reading part is working fine. However, for writing into the file when I OPEN the file in OUTPUT mode, it ends up giving file status 37. However, if I open with I-O mode and write into the file, it works fine.
Never faced this situation before. Please let me know if you have any ideas/suggestions to understand and solve the problem??
Is any other detail required??
status code 37: An OPEN statement was attempted on a file that would not support the open mode specified in the OPEN statement. (I am not sure why should my KSDS not support OUTPUT mode).