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

Finding the record with error over a file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Thu Dec 16, 2004 1:08 pm
Reply with quote

hi all,

i am reading the file which is having 1000 records, suppose i got error in reading the particular record how can i find out that particular record.i am reading through key field

regards,
siva pradeep
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Thu Dec 16, 2004 1:17 pm
Reply with quote

Hi Siva,

You are reading records. means you are doing some process with them. just for sake we will take as you are generating a report. If the report generation stops at nth rec you can find it as nth rec. Otherwise you can use the key value to check which record is failed.

Bye,
Reddy.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Dec 17, 2004 10:00 am
Reply with quote

you could use FILE STATUS in your pgm annd also keep count of your reads. Check the FILE STATUS after every read if it's > 0 (you have a read error) DISPLAY the counter. If the pgm abends in spite of this you can find the counter in the dump and determine the read count.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Finding and researching jobs All Other Mainframe Topics 0
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
Search our Forums:

Back to Top