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.
My copy of (Almost ) 1001 Ways to Work with DATES in WebFOCUS contains the following passage about DATEDIF ..."It does not curently work with Dialogue Manager variables." p 289. And I highly recommend the book. Here is a definitive discussion. edit to add URLThis message has been edited. Last edited by: jimster06,
jimster06 DevStu WF 7.6.11 W7 HTML, PDF, EXL2K
Posts: 252 | Location: USA | Registered: April 15, 2003
Interesting Jack. I'll have to try that one. Another way to get this to work is to use the DATECVT function first (like DATECVT(&YYMD,'I8YYMD','YYMD') and then use DATEDIF on those converted dates. Works for DATEADD as well which also "cannot be used with Dialogue Manager."
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
The input is required to represent a "smart" date (accepted in either offset integer form or formatted date form), and the output is an offset integer. &YYMD, even with the quotes, is interpreted as an offset of +yy,yym,mdd.
Bottom line -- use a formatted value (&DATEYYMD rather than &YYMD), and apply DATECVT to the result to obtains a displayable date.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005