× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

I don't think IBM provides anything for week numbers because there's too
much discrepancy in what a week number is. i.e., Does your week begin on
Sunday or Monday? And do your weeks begin numbering from the first full
week the week with the first Sunday/Monday/etc.?

You could code one by multiplying the weeknumber by 7 and adding the
result to the Lilian date for the 1st of January of the requested year.
Then you still have to adjust things depending on what week really starts
the year in your organizations standards.

cobol400-l-bounces@xxxxxxxxxxxx wrote on 10/19/2009 01:00:09 PM:

----- Message from <geir.kildal@xxxxxxxxxx> on Mon, 19 Oct 2009 14:
13:57 +0200 -----




[COBOL400-L] API for week numbers.


I need an API that can receive weeknumber/year and return a
date/date range.(Please enclose parameter description as well)
I'm already using CEEDATE, CEEDAYS and CEEDYWK, but I can't see that
function in any of them.

Any ideas?


Geir Kildal

"Keep it simple!"

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2023 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.