John W Pickering wrote:
>
> John Heffernan asks ...
>
> >I need a cobol routine to convert dates into a week of the year.
>
> >Does anyone know of a routine to do this or is is covered by one
> >of the intrinsics?
>
> Haven't got one in Cobol but can send you one for use in Powerhouse. And
Havenīt one either in COBOL. But I have one in BASIC f. Applications (was
originaly written for ACCESS). I do not know how much effort it will be
to rewrite it in COBOL, but if someone needs a copy - give me mail.
Cheers,
friedrich
> Denys is correct - you first need to determine on what day of the week
> January 1st falls, how many days have elapsed since then and then you
> will need to apply the "company policy" about when the first week of the
> year may start. I too have seen years ranging from 51 through 54 weeks.
>
> John Pickering
> JWP Systems Inc.