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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
All, I am trying to fetch the YEAR part alone from the Current date, using Dialogue manager.But i am not able to get it.I got WF_1001_dates_sample.pdf from the forum, in that it was given fetching year with Quarter and month.Using DATECVT i tried, but it accepts only MMDY kind of format.We cannot the set the data type for a variable in the dialogue manager.Can any one suggest how to fetch YEAR part alone using dialogue manager.
Do you know where they're documented? As far as I can tell, they're only in the third-party WebFOCUS Key Sheet book.
These are mentioned in the 5.3 manual: &DATE, &DATEDMY, &DATEDMYY, &DATEMDY, &DATEMDYY, &DATEYMD, &DATEYYMD, &DMY, &DMYY, &MDY, &MDYY, &TOD, &YMD, &YYMD, but only in a section on using reserved amper variables in a DEFINE in a Master.
I've been using &DATEDMtrYY for a while, though it's not documented.
It would be nice to have the complete list in the documentation.
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
Francis, As I said, you can add after &DATE any FOCUS date format you want and FOCUS will return the date in that format. I can't tell you offhand where is the documentation, but back in 1999, when the year 2000 was looming ahead, it was well known. Also, if you look in the MF Focus manual for developping applications, you will find: &DATEfmt: Any date format. Returns the current date, where fmt can be any combination of YYMD, MDYY, etc.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Available Date Display formats are listed in the Describing Data manual for WF 5.x in chapter 4 pages 27-29, in the WF 7.x Describing Data manual chapter 5 page 43, however the WF 7.x manual does not mention the 'r, R' option.