Problem with Date(days()) functions

Deskin, Bob Bob.Deskin@Cognos.COM
Thu, 8 Apr 1999 05:22:18 -0400


If you have CENTURY EXCLUDED as your dictionary global option, the DATE
function returns a century excludd date that must be within the default
century. PowerHouse is functioning as it always has and as documented. Full
details of the effect of the CENTURY INCLUDED option are scattered in the
manual or in an article that was in SupportLink or at
http://www.cognos.com/suppserv/custsupp/power2000/phcentury.html

Bob Deskin              
Senior Product Advisor, Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 4205 FAX: (613) 228-3149
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA


> ----------
> From: 	Joseph Northrop[SMTP:jay_northrop@yahoo.com]
> Sent: 	April 7, 1999 4:42 PM
> To: 	powerh-l@lists.swau.edu
> Subject: 	Problem with Date(days()) functions
> 
> We are having a problem with the DATE(DAYS())
> function that we normally use to add a certain #
> of days to a given date.  We just installed 8.19
> of Powerhouse on our HP3000.
> 
> I was under the impression that this version of
> Powerhouse was Y2K compliant, but I've been
> trying to get the following code to work with no
> luck.
> 
> DEFINE DT DATE CENTURY INCLUDED = &
>      20000101
> DEFINE ND DATE CENTURY INCLUDED = &
>     DATE(DAYS(DT) - 4)
> 
> What happens is the ND field comes up as 0
> anytime after Jan 5, 2000 (which becomes
> Dec 21, 1999) 
> 
> Is this a known problem and is there a workaround?
> I've spent a long day on this and I'd appreciate
> any help anyone has to give.  ;-)
> 
> -Jay Northrop
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> =
> Subscribe: "subscribe powerh-l" in message body to
> majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.
> 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.