View previous topic :: View next topic
|
Author |
Message |
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
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 |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|