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 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

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