Page 1 of 1

Simplest way to identify a bad record ?

Posted: Wed Apr 05, 2006 10:46 am
by jazzer1
I'm reading a 10,000 record file. The validation stops in the middle of the run. What's the simplest method to identify which record is failing the validation ?

The trace has all this offset info but is there any way it could give you a record count instead of an object count ?

E.G. Record 9299 failed ? Something straight forward ?

Posted: Wed Apr 05, 2006 10:55 am
by DSguru2B
Please give some more information regarding this.

Posted: Wed Apr 05, 2006 10:59 am
by jgibby
Do you have the Restart attribute set in the input Type Tree? If so, then validation wouldn't fail and you could use the reject function to access any bad records.

I agree, more information is needed.

Posted: Fri Apr 07, 2006 7:43 am
by jazzer1
I have a file that could have (0:s) records, and each record can occur (0:s). For example:
1mmmmmmmmmmmmmmm<CR><LF>
2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
Xnnnnnnnnnnnnn<CR><LF>
3xxxxxxxxx2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
T44444nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
2nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn<CR><LF>
9aaaaaaaaaaa<CR><LF>

Any field could fail on any record. If any field fails, I want to write the
entire record to an output. How do I set this up ?
Thanks.

Posted: Thu Apr 13, 2006 3:06 am
by janhess
Use the REJECT function to reject failed records and set RESTART in the type tree so that you process all records.