View previous topic :: View next topic
|
Author |
Message |
nitindobhal
New User
Joined: 23 Jun 2006 Posts: 3
|
|
|
|
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 |
|
|
pattabiraman.baskaran
New User
Joined: 10 Aug 2006 Posts: 23
|
|
|
|
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 |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
nitindobhal
New User
Joined: 23 Jun 2006 Posts: 3
|
|
|
|
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 |
|
|
|