View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Sat Jul 30, 2005 5:55 am Post subject: to skip the record |
|
|
Hi,
I have for eg. some 1000 records in a table. my application program is reading each record one by one. at particular record the job is abending. How to skip that record and process the remaining records.
this is an interview question. Pls. give a sol. how to do that.
Thanks
nadh |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Sun Jul 31, 2005 1:41 am Post subject: |
|
|
Quote: | How to skip that record and process the remaining records. |
Will you reprocess the records before the record that cause the ABEND?
In either case, you can have appropriate restart logic to accomplish this. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Mon Aug 01, 2005 2:16 am Post subject: |
|
|
Hi,
Don't want to reprocess the records before the record that cause the ABEND. Just want to proceed the execution with re remaining records, discarding the RECORD which caused the ABEND.
thanks
nadh |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Mon Aug 01, 2005 7:27 am Post subject: |
|
|
nadh,
First define the abend - is it DB2 or Application or System. If DB2 then check the return code and bypass it, if application related then analyze under what conditions the abend occurs and programatically bypass. If system abend, identify and fix it. Restart/reposition is a different subject. Thanks |
|
Back to top |
|
|
schintala Beginner
Joined: 18 May 2005 Posts: 108 Topics: 31 Location: USA
|
Posted: Mon Aug 01, 2005 8:11 am Post subject: |
|
|
I would do by pass the record after checking the SQL code and continue to process the rest of records. |
|
Back to top |
|
|
|
|