Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File Status Code 37

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: File Status Code 37
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    Post subject: Reply to: File Status Code 37
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us