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 have &variables that calculate the number of workdays per month. They are not associated with any table - just purely &variables. Is there anyway I can write the value of these &variables as a line on an EXCEL spreadsheet? Thanks.
WF 7.7/Windows
Posts: 42 | Location: Denver, CO | Registered: January 04, 2007
There probably is a way to do this in EXCEL. For the record, I could write this whole report in EXCEL easier than it has been doing it in WebFocus. However, I need to perform 2 calculations based on the workday number. Since I've written the rest of the report in WebFocus, I wanted to do this with WebFocus. Thanks.
WF 7.7/Windows
Posts: 42 | Location: Denver, CO | Registered: January 04, 2007
we have a database with year, month fields for our general ledger.
I created this report what exactly gives you the output as wanted
-DEFAULT &YR=2006; DEFINE FILE KCM_OAS_PERLIST BVDM/YYMD=DATEMOV(ENDDATE, 'BOM'); WORKD/I5=DATEDIF(BVDM, ENDDATE, 'BD'); END TABLE FILE KCM_OAS_PERLIST SUM WORKD BY YR BY PERIOD AS '' WHERE ( CMPCODE EQ 'F500' ) AND ( YR EQ &YR ) AND ( PERIOD FROM 1 TO 12 ); ON TABLE HOLD END DEFINE FILE HOLD 1M/I3=IF PERIOD EQ 1 THEN WORKD ELSE 0; 2M/I3=IF PERIOD EQ 2 THEN WORKD ELSE 0; 3M/I3=IF PERIOD EQ 3 THEN WORKD ELSE 0; 4M/I3=IF PERIOD EQ 4 THEN WORKD ELSE 0; 5M/I3=IF PERIOD EQ 5 THEN WORKD ELSE 0; 6M/I3=IF PERIOD EQ 6 THEN WORKD ELSE 0; 7M/I3=IF PERIOD EQ 7 THEN WORKD ELSE 0; 8M/I3=IF PERIOD EQ 8 THEN WORKD ELSE 0; 9M/I3=IF PERIOD EQ 9 THEN WORKD ELSE 0; 10M/I3=IF PERIOD EQ 10 THEN WORKD ELSE 0; 11M/I3=IF PERIOD EQ 11 THEN WORKD ELSE 0; 12M/I3=IF PERIOD EQ 12 THEN WORKD ELSE 0; TEXTLINE/A40='Workingdays for the year '; END TABLE FILE HOLD SUM 1M AS '' 2M AS '' 3M AS '' 4M AS '' 5M AS '' 6M AS '' 7M AS '' 8M AS '' 9M AS '' 10M AS '' 11M AS '' 12M AS '' BY TEXTLINE AS '' ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K END
You have to create a master with a yr field (2006) period (1 to 12) and than it could work.
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