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.
I would have thought this should return a difference of 31 days, instead it returns 100. I don't know why it does this.
To get around this issue I tried the following:
-SET &dateDiff = DATEDIF('01 MAR 2010', '01 APR 2010', 'D');
This worked correctly and calculated the difference as 31 days. However, I need to pass these dates into the DATEDIF function as variables. The first date is when the report was created, the second the current date. To do this I've used the following:
-* the first date -SET &startDate = '20100401';
-* get the current date -SET ¤tDate = TODAY(A10);
-* format the current date -SET ¤tDate = EDIT(¤tDate,'$$$$$$9999')|EDIT(¤tDate,'99')|EDIT(¤tDate,'$$$99');
If you use date strings instead of Smart Dates, function DATEDIF requires separators between the year, month, and day portions of the date string, and single quotes around the entire string. The code below seems to work.