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

What is VSAM error status code 37


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Aug 01, 2007 6:51 pm
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
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
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Aug 01, 2007 8:03 pm
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: 128
Location: Guntur

PostPosted: Mon Aug 06, 2007 12:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top