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.
I am running FOCUS V7.6.10. to use the field: DT_WEEK/I2 = HPART(CUR_HMDYY,'WEEK','I2'); I get the following results: PAY WEEK TOTAL PAID US$ # OF CLAIMS -------- -------------- ----------- 42 159,482.88 718
is it possible to get all of the weeks for the current year not just the current week? If so what is the coding to use?This message has been edited. Last edited by: Kerry,
FOCUS V7.6.10 Windows XP, Excel
Posts: 3 | Location: Portland, OR | Registered: August 30, 2010
This is a sample of data that we are striving for. We currently use a table to create the "Pay Week" and are trying to get away from using tables and just use coding.
FOCUS V7.6.10 Windows XP, Excel
Posts: 3 | Location: Portland, OR | Registered: August 30, 2010
If you don't have supporting data to provide the set of dates/weeks, you could perhaps make it up using the McGyver technique. Search for either McGyver or MacGyver (and perhaps other [mis]spellings) for plenty of examples on how to go around that.
If you have to get all weeks for 2010, you could use HPART to obtain the week number corresponding to the last day of the year. That'll tell you how many "records" you'll need to create with McGyver.
Of course, that won't give you a solution for the "TOTAL PAID US$" and "# OF CLAIMS" values corresponding to each week, which is probably why Waz was asking about your data source and dates available within it. How else could you assign $66,011.88 to Week 2?
You can use this long calculation to produce the week number. SUN_WEEKA would be used if you want the first week of the year to begin as week 0, SUN_WEEK would be used to start the first week of the year as week 1.
WebFocus 7.7.03 - 7703_hotfix - Gen: 284 Dev Studio 7.7.03 - Gen: 06062011 Mainframe Focus 7.7.03 Windows WF Client Server zOS Reporting server (hub-sub config) Windows Reporting server Windows RC Client Server
Posts: 30 | Location: Portland, Oregon, USA | Registered: September 11, 2009
It would seem to me that you have already provided most of the solution to your own question. As earlier contributors to this entry have already suggested, you must have some kind of date associated with each claim and dollar amount. If this is the case, you shouldn't need a date table to produce the sample output you provided. If we assume the date in your data is a date-time field (based on your example using HPART) and the name of that field is, say, PAY_DATE, then something like this should work:
DEFINE FILE <filename>
WEEK_NUMBER/I2 = HPART(PAY_DATE,'WEEK','I2');
YEAR_NUMBER/I4 = HPART(PAY_DATE,'YEAR','I4');
SHORT_YEAR/A2 = EDIT(YEAR_NUMBER,'$$99');
WEEK_TEXT/A7 = SHORT_YEAR | '-WK' | EDIT(WEEK_NUMBER);
END
TABLE FILE <filename>
SUM <dollar amount field> AS 'Total Paid,US $'
CNT.<claim number field> AS '# of Claims'
BY WEEK_TEXT AS 'Pay Week'
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007