HP3000-L Archives

June 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Friedrich Harasleben <[log in to unmask]>
Reply To:
Friedrich Harasleben <[log in to unmask]>
Date:
Tue, 17 Jun 1997 10:40:40 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
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.

ATOM RSS1 RSS2