I probably should have qualified my "no can do" with the condition "without using a cursor" but I hope it's generally understood that anything you can do in RLA you can do in SQL with a cursor, which you can then encapsulate into a UDF. You might not like the resulting performance, but it can be done.

Joe


Jon,

Right now I'm using V5R3, so I can't give you a working example but,
Couldn't this be done using recursive SQL?

Also, maybe you could write a small UDF that accepts the input date and
number of days as parameters, process your calendar table and returns the
appropriate date.


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.