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
 

 

User Abend U4005

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
ilakkia
Warnings : 1

New User


Joined: 17 May 2008
Posts: 28
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

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

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: 1512
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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