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: 6968
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm

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