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.
Has anyone created full list of date variables that may be called as a report object? I am looking to include date values such as prior weekday, prior business day, prior Monday, prior Friday, prior month end date, prior quarter end date, next month end date, next quarter end date, etc. WF provides a routing called DATEMOV which will accomplish many of the requirements, however in WF 7.1.1 not all of them function correctly - especially in Dialogue Manager.
http://www.aviter.com/ and buy the book 1001 ways to work with dates in focus. i trust you've masterd the 'dates' chapter in your 'using functions manual'?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Wasn't too keen on 7.1.1 flavour but looking forward to the 7.1.3. Let's hope that these problems (have they been accepted by IB as "features") are ironed out.
Any of you people out there with the later version able to test and advise please?
Woody, If you have examples of functions that do not work in DM then please share so that we can be armed beforehand .
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Date multipilations are fundamental. And yes, I have "mastered" dates in "Using Functions" manual. My concern is WF 7.1.1. Try the following DM. When using the DATEMOV function with BOM, EOM, BOQ, EOQ, the results are ********. All the others work fine. Thoughts and suggestions welcome.
-SET &TODAY = TODAY('A10'); -SET &PRIBUSDAY = DATEMOV(&YYMD, 'PWD'); -SET &NXTBUSDAY = DATEMOV(&YYMD, 'NWD'); -SET &YESTERDAY = &YYMD-1; -SET &TOMORROW = &YYMD+1; -* -SET &BEGWK = DATEMOV(&YYMD, 'BOW'); -SET &ENDWK = DATEMOV(&YYMD, 'EOW'); -* -SET &FSTDOM = DATEMOV(&YYMD, 'BOM'); -SET &LSTDOM = DATEMOV(&YYMD, 'EOM'); -* -SET &BEGQTR = DATEMOV(&YYMD, 'BOQ'); -SET &ENDQTR = DATEMOV(&YYMD, 'EOQ'); -* -SET &CDAY = EDIT(&YYMD,'$$$$$$99'); -SET &PDAY = EDIT(&YESTERDAY,'$$$$$$99'); -SET &NDAY = EDIT(&TOMORROW,'$$$$$$99'); -TYPE &CDAY - &PDAY - &NDAY -* -TYPE TODAY Function &TODAY -TYPE . -TYPE Current Day &YYMD -TYPE Yesterday &YESTERDAY -TYPE Tomorrow &TOMORROW -TYPE . -TYPE Previous Business Day &PRIBUSDAY -TYPE Next Business Day &NXTBUSDAY -TYPE . -TYPE Beginning of Week &BEGWK -TYPE End of Week &ENDWK -TYPE . -TYPE First Day of Month &FSTDOM -TYPE Last Day of Month &LSTDOM -TYPE . -TYPE Beginning of QTR &BEGQTR -TYPE End of QTR &ENDQTR
When manipulating dates in Dialog Manager, I have found that converting the DM variable to date format and then applying the DATEMOV function and then converting back to DM variable works best:
For example, if a date is entered as YYYYMMDD, how can you determine what the beginning date of the week is (the previous Sunday, unless the date entered is a Sunday).
Thank you,
John
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006
For DATEMOV and myself, the week starts on a Monday. I thought setting BUSDAYS to SMTWTFS would affect DATEMOVE's beginning of the week , but it does not, so moving a date to the previous Sunday takes two steps - first move it to the previous Monday and then subtract one day from the date to move it to the previous Sunday. If it's already a Sunday (day 7) don't do anything.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
The results are quite what I'm looking for. 20071210 is a Monday. The dates listed should yield 20071209 as the BOW date. This is what the results were:
For starters, take another crack at the manual. If &YYMD is 20071231 , then adding 1 to it , while tempting, will give you 20071232, which is not a date. You need to stay within the date construct. -SET &TOMORROW = AYMD ( &YYMD, 1, 'I8YYMD'); gives you 20080101 etc. Another good source is the WebFOCUS KeySheet , a $25 investment worth a zillion, and lists all manner of date variables. -S.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
there is a setting to tell WF which day you want to be first day of week... i'm w/o manuals at the mo' so , uselessly, i can't look it up foryou, but i promise you its there.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
The U.S. English default value is seven (Saturday) meaning that Saturday is the first day of each week
A bit strange...I suppose 7 (as a higher number than 6 and 5 and...) should represent the last day of the week. IMHO Sunday is the last day of the week. (you rest after a whole working week in the WeekEnd). But apperently Bill Gates rules the agenda nowadays....
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006