Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DATEADD suddenly stopped working

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DATEADD suddenly stopped working
 Login/Join
 
Platinum Member
posted
Hi All,

Can anyone tell me why the following code suddenly doesn't provide the correct date? This just started to fail two days ago but prior to that it's been working for months.

SET BUSDAYS = _MTWTF_
-RUN
-SET &DTPREV = DATECVT(DATEADD(DATECVT(&YYMD,'I8YYMD','YYMD'),'BD',-1),'YYMD','I8YYMD');
-TYPE &DTPREV

&DTPREV should be 20140916 and instead it's 19001231. WTH!!!

Any ideas or alternatives? This is from WebFOCUS 7.6.9.

Thanks,

Norb

This message has been edited. Last edited by: Norb Eckert,


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Platinum Member
posted Hide Post
Well I added a line for the holiday file and now it's working correctly.

SET HDAY = SBLC

So I guess that everywhere I have a BUSDAYS command I will need to add an HDAY command as well. I don't understand why this is necessary since I would expect the DATEADD function to work with or without the holiday file being specified.

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Master
posted Hide Post
Just put the SET HDAY in the server profile. Also, I think that to use 'BD' the holiday file is required.

"...When using the business day unit, DATEADD uses the BUSDAYS parameter setting and holiday file ..."


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Gold member
posted Hide Post
maybe a custom holiday file ran out? Might be located here:
ibi/srv769/wfs/bin/hday??.err


8.2.03 AIX Client Windows Tomcat
DB2, Terradata, SQL, Oracle
 
Posts: 56 | Location: Fort Worth, Texas USA | Registered: January 27, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DATEADD suddenly stopped working

Copyright © 1996-2020 Information Builders