Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 4 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us