I wanted to solve this wholly within SQL rather than use RPG.
Probably not as clean as idate (didn't look at it), but it does the
job. I think that I'll wrap this in a UDF.
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