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.
anybody know how to get the MAX of a DATE/yymd field into a header?
i tried <MAX.DATE ...nada
i tried <LST.DATE ... nada
i tried <TOT.DATE ... zippo
i tried <MAX. DATE ... nada [with that funny blank you sometimes need for stuff)
argh!!!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
You don't say what release you used although I guess it was as per Susannah's signature. I'm not sure that it matters anyway as the code you give is what I would normally do for this anyway!
Susannah,
The important bit of code is, as Karen has, is the SUM MAX.datefield NOPRINT before your next verb object such that is obtains the max date field value at TABLE level which is what you require.
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
yes melbourne's ex works fine in 764 as well. Tom, yes but im trying to avoid the double data pass. so that confirms the prob is in my sleep-deprived brain. merci, mes amis.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
TABLE FILE EMPDATA
HEADING
"min hire date <MIN.HIREDATE TO max <MAX.HIREDATE> </1"
SUM MAX.HIREDATE NOPRINT
SUM
-*CNT.DST.PIN
SALARY BY DEPT
END
but this doesn't
TABLE FILE EMPDATA
HEADING
"min hire date <MIN.HIREDATE TO max <MAX.HIREDATE> </1"
SUM MAX.HIREDATE NOPRINT
SUM
CNT.DST.PIN
SALARY BY DEPT
END
Its the count distinct that blows it slam out of the water. rats. its 2pass time. you don't even need the first SUM Is this a bug or a feature?This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I've never seen the use of multple SUM or PRINT verbs with a single END as illustrated in this post. Isn't the first SUM a "dangling SUM" in that it has no matching END? I think of SUM-END/PRINT-END like parenthesis that must be in matched pairs and am curious about the operation of such multiple 'openings' with only one 'closing'.
Chris
WIN/2K running WF 7.6.4 Development via DevStudio 7.6.4, MRE, TextEditor. Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005
This is called a 'multi-verb' request and has been around forever. The major caveat is that the BYs be nested, i.e. either the same or every increasing. The last verb can be a PRINT.
Chris...oh you've just stumbled upon *the* coolest thing about wf, double verbs, triple verbs..howevermayyouwant verbs..all to create aggregates at whatever level you need. and 1 end statement. Now that you've discovered that, you'll never get any more sleep
T, i did know about the HEADING at the end bit... i learned that one SUMMIT, probably from Renee or Noreen...just a flying one-liner that stuck in my head...ah the value of SUMMIT.. its that COMPUTE to actually get past the CNT.DST aggregation that may not ever have occured to me without the POINT here. And the fact that Melbourne is up earlier than the rest of us. thanks again, downunder.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003