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.
Duane, Maybe this is a bit late for you, but here is a simple solution. It is based upon the assumption that your file has dates that span 1 year only. The example is based on the CAR file. I created a fictitious date.
-* File dgraff.fex
DEFINE FILE CAR
PROD/DMYY=
63* 365 + LENGTH * 10 + HEIGHT * 10 + WIDTH * 10;
MPROD/MtYY=PROD;
M/M=MPROD;
END
TABLE FILE CAR
SUM SALES
ACROSS M NOPRINT
ACROSS MPROD
WHERE MPROD FROM '07/1971' TO '06/1972'
END
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
What you want if I translate your question well is that you want the lst year first and then the normal month sequence. If your period is a normal smartdate you can do this.
DEFINE FILE XXX
YEAR/YY=YOURDATE;
MONTH=tM/YOURDATE;
YEARMND/YYtM=YOURDATE;
END
TABLE FILE XXX
SUM whatever
BY xxxx
ACROSS HIGHEST YEAR NOPRINT
ACROSS MONTH NOPRINT
ACROSS YEARMND
END
...
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
duane -- see if this helps. -* CASHFLOW is a sample ibi table -*********************************************** -* get current month and year from system date -SET &TODAY = &YYMD; -SET &TODAY = '19980513'; -SET &CYR = EDIT(&TODAY,'9999$$$$'); -SET &CMO = EDIT(&TODAY,'$$$$99$$'); -SET &LYR = (&CYR - 1); -*********************************************** DEFINE FILE CASHFLOW CASHDATE/I8YYMD = CASH_DATE; CASH_MM /A2 = EDIT(CASHDATE,'$$$$99$$'); CASH_YY /A4 = EDIT(CASHDATE,'9999$$$$'); SORT_DATE /A6 = IF CASH_MM LT '&CMO' THEN '&CYR' || CASH_MM ELSE '&LYR' || CASH_MM; END TABLE FILE CASHFLOW PRINT LONG_TERM_DEBT INTER_TERM_DEBT SHRT_TERM_DEBT ACROSS HIGHEST CASH_YY NOPRINT ACROSS SORT_DATE BY HIGHEST CASH_YY NOPRINT BY SORT_DATE NOPRINT BY CASH_DATE WHERE CASH_DATE LT '05/01/1998'; END
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004