IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File Read Status: 10 due to a S0CB


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top