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
 

 

VSAM File status 41 I-O read error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Wed Oct 08, 2008 7:56 pm    Post subject: VSAM File status 41 I-O read error
Reply with quote

Hi,
Can anyone tell me the Syntax for I-O read.
i am getting the file status 41, while i am reading in I/O MODE.
how to append a O/P File(Not in JCL) Through file handling.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Wed Oct 08, 2008 8:01 pm    Post subject:
Reply with quote

Did you look up the file status 41? This can be found in the sticky at the start of the COBOL forum. Hint: the problem is not a read.

I-O read syntax is no different than INPUT read syntax; why would you think it would be different?

And what does this mean?
Quote:
how to append a O/P File(Not in JCL) Through file handling.
If you're talking about dynamically allocating a file to append, the manual is the Language Reference and the link is at the top of the page.
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: Wed Oct 08, 2008 8:12 pm    Post subject:
Reply with quote

Logic error condition
41
An OPEN statement was attempted for a file in the open mode.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Oct 09, 2008 12:09 am    Post subject:
Reply with quote

Hi,

You might like to check these similar links as well..

http://www.ibmmainframes.com/viewtopic.php?t=34717&highlight=open
http://www.ibmmainframes.com/viewtopic.php?t=34651&highlight=

Status Code 41 usually comes in when there is a flaw in your logic - it's a logical error, as suggested, your program logic tries to OPEN the same file again. Try to put a DISPLAY before the statement where you issue an OPEN & check in the SYSOUT how many times your program tries to execute OPEN statement..if two continuous messages are displayed in SYSOUT (& no CLOSE is issued between them)- check your logical flow again.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am


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