MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

to skip the record

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Sat Jul 30, 2005 5:55 am    Post subject: to skip the record Reply with quote

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
View user's profile Send private message Send e-mail
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jul 31, 2005 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Mon Aug 01, 2005 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Aug 01, 2005 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Aug 01, 2005 8:11 am    Post subject: Reply with quote

I would do by pass the record after checking the SQL code and continue to process the rest of records.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group