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
Joined: 06 Dec 2004 Posts: 200 Location: Keane India Ltd., Hyderabad
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.
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.