Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us