IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File Status Code 37


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Abhishek Saurabh

New User


Joined: 25 Aug 2010
Posts: 23
Location: Pune, India

PostPosted: Thu Jul 25, 2013 12:38 pm
Reply with quote

Hi..

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).
Back to top
View user's profile Send private message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Thu Jul 25, 2013 1:53 pm
Reply with quote

Hi Abhishek,

If you are allowed to delete and re-create the vsam, please attempt it. It sometimes helps resolving the issue according to the below duscussion.

http://ibmmainframes.com/about16194.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top