Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
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.
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.