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 IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm


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