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
 

 

File Read Status: 10 due to a S0CB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
nitindobhal

New User


Joined: 23 Jun 2006
Posts: 3

PostPosted: Mon Aug 28, 2006 12:33 pm    Post subject: File Read Status: 10 due to a S0CB
Reply with quote

Hi,
My batch has fallen down due to a S0CB, and the error message comes as follows :-
REPP676 READ FAILURE
REPP676 FILE STATUS :- 10

Where REPP676 is my file.
It looks like, the error has come, because program as detected 'end of file'.
But my file has lots of records here.

Does anyone know, how to correct it ?
Back to top
View user's profile Send private message

pattabiraman.baskaran

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Mon Aug 28, 2006 3:23 pm    Post subject: Re: File Read Status: 10
Reply with quote

Nitin,

From my perspective, this could be the reason.

The logic of your program would be in such a way that it will try to fetch a record even after closing a file.

I guess i could help you if i look through the code.
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Mon Aug 28, 2006 5:58 pm    Post subject:
Reply with quote

Just to add to that, try adding a display statement for each successful read and this should ideally give you an idea on whether or not the records have been read correctly.

Cheers, Twissi.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Aug 29, 2006 3:36 am    Post subject: Re: File Read Status: 10
Reply with quote

nitindobhal,

How big is you program? Can you post it, we can take a look for you.

You have done, but not limited to, one of the following. Failed to OPEN the file prior to trying to read it, READing to the EOF without processing the records, prematurely closing the file, then trying to read it again.

Dave
Back to top
View user's profile Send private message
nitindobhal

New User


Joined: 23 Jun 2006
Posts: 3

PostPosted: Tue Aug 29, 2006 4:55 pm    Post subject:
Reply with quote

Thanks everybody. I found that the program was expecting one trailer record in the starting. Failing which, it was giving an abend.

I included the trailer record in the starting and resubmitted the job. It worked fine.

Thanks again to all of you.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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