Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
User Abend U4005

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
Author Message
ilakkia

New User


Joined: 17 May 2008
Posts: 18
Location: chennai

PostPosted: Thu Jun 05, 2008 8:57 pm    Post subject: User Abend U4005
Reply with quote

One of our Jobs abended with U4005.
We have identified from its corresponding COBOL code that this abend
arised while opening a VSAM dataset. The abend message was 'Error opening a vsam dataset of file status 37'.

The description of file-status 37 is
An OPEN statement was attempted on a file that would not support the open mode specified in the OPEN statement.
Possible violations are:

o The EXTEND or OUTPUT phrase was specified but the file would not
support write operations.

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

o The INPUT phrase was specified but the file would not support read
operations.

Actually this abended job runs a cobol code with a input VSAM file. This file is opened in OUTPUT mode inside the cobol program.

Let us know how to fix this issue.
Back to top
View user's profile Send private message
References
PostPosted: Thu Jun 05, 2008 8:57 pm    Post subject: Re: User Abend U4005 Reply with quote

Moved: Thu Jun 05, 2008 9:12 pm by superk From JCL to ABENDS & Debugging
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1126
Location: At my desk

PostPosted: Thu Jun 05, 2008 9:25 pm    Post subject:
Reply with quote

Look into extending the FILE STATUS clause with the second six byte field for more information.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 960
Location: Virginia, USA

PostPosted: Thu Jun 05, 2008 11:06 pm    Post subject:
Reply with quote

Quote:
Actually this abended job runs a cobol code with a input VSAM file. This file is opened in OUTPUT mode inside the cobol program.



Why would you open an input VSAM in OUTPUT mode?
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7441
Location: 221 B Baker St

PostPosted: Fri Jun 06, 2008 2:21 am    Post subject:
Reply with quote

Hello,

Is this new code or had it been working until some change was made?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1