MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » May 2014

RE: can this reject bad data?



fixed

If you are going to write it into a UDF anyway rewrite it from scratch.
Make it really simple.
Get the digits in the right order.
Use IBM bif's to convert to date.
Use SQL error trapping to handle the exceptions.
Do not try to calculate leap dates, etc on your own. Sure you can, but
why bother?


Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact