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
 

 

What is VSAM error status code 37

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Wed Aug 01, 2007 6:39 pm    Post subject: What is VSAM error status code 37
Reply with quote

hi,

can anybody help me in finding what is VSAM error status code 37.
I am getting this error while i am trying to open a vsam file in I/O mode.

Thanks
LC
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Aug 01, 2007 6:51 pm    Post subject:
Reply with quote

You did look it up, didn't you?
Status key
Quote:
37:
An OPEN statement was attempted on a file that would not support the open mode specified in the OPEN statement.
Possible violations are:
1. The EXTEND or OUTPUT phrase was specified but the file would not support write operations.
2. The I-O phrase was specified but the file would not support the input and output operations permitted.
3. The INPUT phrase was specified but the file would not support read operations.
Which one is it?
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Aug 01, 2007 6:51 pm    Post subject:
Reply with quote

Following are the some informations i found from some materials for file status code of 37.

1. Permanent error condition.

2. The I-O phrase was specified but the file would not support the input and output operations permitted.

3. OPEN MODE INCOMPAT WITH DEVICE
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Wed Aug 01, 2007 7:01 pm    Post subject: Re: Query on Error sttus code 37
Reply with quote

but the thing is that, that particular file has read/write privilege. and is opened in I/O mode.
Is there any other case of failure.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 01, 2007 8:00 pm    Post subject:
Reply with quote

what does a listcat on the vsam provide?

I think I remember something about the REUSE parameter.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Aug 01, 2007 8:03 pm    Post subject:
Reply with quote

Your best bet would be to change your program by adding FILE STATUS clause, data-name-8 to get the full description of the error.
Back to top
View user's profile Send private message
balakrishna reddy

Active User


Joined: 13 Jul 2007
Posts: 130
Location: Guntur

PostPosted: Mon Aug 06, 2007 12:26 pm    Post subject:
Reply with quote

hi lekshmi,

as dbz wrote
Quote:

I think I remember something about the REUSE parameter


the reuse parameter plays a prominent role in adding records to vsam file.

i think you must have specified NOREUSE option for that vsam file at time of cluster creation. Please make sure that it is specified as 'REUSE' or not.

if still the problem is coming then please provide the sysout and vtoc information of that file.
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 MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 1 Tue Jan 24, 2017 1:23 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


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