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 

How to find the bad file from millons of records

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


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Fri Aug 24, 2007 2:49 am    Post subject: How to find the bad file from millons of records Reply with quote

HI ,

Suppose we got soc7 and the has millions of record .How to identify which record the abend occur so that we correct the data.

Thanks & regards,
Siva
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Aug 24, 2007 3:49 am    Post subject: Reply with quote

write defensive code. i.e. IF NUMERIC
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Aug 24, 2007 4:01 am    Post subject: Reply with quote

Dick,

Looks like a cool answer from a program perspective but in case we are using a SORT utility which is doing some operations on fields and we get S0C7 how to find out which record is responsible for creating S0C7.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Aug 24, 2007 4:12 am    Post subject: Reply with quote

shekar123,

if the OP wanted a 'COOL' answer for SORT Utility, he should not have posted the question in Application Programming.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 24, 2007 7:02 am    Post subject: Reply with quote

Quote:

Looks like a cool answer from a program perspective but in case we are using a SORT utility which is doing some operations on fields and we get S0C7 how to find out which record is responsible for creating S0C7.


shekar123,

Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?p=26061#26061

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Aug 24, 2007 7:29 am    Post subject: Reply with quote

sivafdms,

IF it was a user written program (you and i are users) you would have to interpret the dump, if abend aid was not available. There are many threads on how to interpret dumps.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
bruce2359
Beginner


Joined: 22 Sep 2006
Posts: 2
Topics: 0
Location: West Coast, almost.

PostPosted: Fri Aug 24, 2007 1:48 pm    Post subject: Reply with quote

Good (best practice) application architecture calls for an application program that will read each record in a file and validate all the fields in each record.
_________________
"Time is what keeps things from happening all at once" - anonymous fortune cookie
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Aug 24, 2007 3:24 pm    Post subject: Reply with quote

You could follow Kolusu's suggestion and write a SORT which would validate your records. This would only be run when you have an error and don't want to use the dump. It would take a while to code, but would be always there as a debugging tool. Also, if you ran the SORT 'Proofer' and there was no bad data, then you know that the program managed to step-on-its-foot with something else - which means you have to go to the dump.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
edkir98
Beginner


Joined: 27 Aug 2007
Posts: 102
Topics: 42
Location: Chennai

PostPosted: Mon Aug 27, 2007 6:15 am    Post subject: Reply with quote

If it is like processing on the input and then writing it to output files then you could use (NEW,CATLG,CATLG) on the output and find out till what record the input has processed
In case of DB2 you need to have a column in the table which should be updated when a particular read is successful. Jus like a status indicator. Very Happy
_________________
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Luc Orient
Beginner


Joined: 30 Apr 2006
Posts: 15
Topics: 4
Location: Paris - France

PostPosted: Mon Aug 27, 2007 12:45 pm    Post subject: Reply with quote

May be ICETOOL with the VERIFY operator ?
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 -> Application Programming 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