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
 
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: 6970
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 Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm

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