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.
Currently we are migrating from WF764 to WF8.0.06, in this process we are encountering couple of issues.
Below is the issue when we are dealing with SUBFOOT totals.
Below is the sample by using CAR file.
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS CAR
END
-RUN
DEFINE FILE CAR
DUMMY / A1 = '';
CV_TOTAL_RND1 / I10 = IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND2 / I10 = IF COUNTRY EQ 'FRANCE' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND3 / I10 = IF COUNTRY EQ 'ITALY' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND4 / I10 = IF COUNTRY EQ 'JAPAN' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND5 / I10 = IF COUNTRY EQ 'W GERMANY' THEN DEALER_COST + RETAIL_COST;
-*CV_TOTAL_RND6 / I10 = DEALER_COST + RETAIL_COST;
END
-RUN
TABLE FILE CAR
SUM
DEALER_COST
OVER RETAIL_COST
BY DUMMY NOPRINT
ACROSS COUNTRY
ON TABLE ROW-TOTAL AS 'TOT'
ON TABLE SUBFOOT
"<ST.CV_TOTAL_RND1 <ST.CV_TOTAL_RND2 <ST.CV_TOTAL_RND3 <ST.CV_TOTAL_RND4 <ST.CV_TOTAL_RND5"
END
-RUN
-EXIT
The above code is giving different answers for the SUBFOOT, when I have executed in the WF764 and 8.0.06.
Subfoot Result from WF764 is 83172 10241 92300 11990 119295 where as WF8.0.06 is giving 83172 0 0 0 0.
I would like to have same output in the both versions.
Thanks in Advance.
Regards, RaghavendraThis message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Hard to tell what causes different results, because the actual SUBFOOT value is missing.... You can try something like that:
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
COMPUTE CV_TOTAL_RND/D9 = DEALER_COST + RETAIL_COST ;
BY COUNTRY
ON TABLE HOLD AS TMP1
END
TABLE FILE TMP1
SUM
DEALER_COST OVER
RETAIL_COST OVER
CV_TOTAL_RND AS 'TOTAL'
ACROSS COUNTRY
ON TABLE ROW-TOTAL AS 'TOTAL'
ON TABLE SET PAGE-NUM NOLEAD
END
Originally posted by Alan B: The earliest release I have available is 7.6.10. The result from that release to 8.009 is the same, not a particularly useful report though.
Can you explain and show the result differences, and use the code tags please.
I have added code tags and also provided output in both versions.. Please have a look at it and give your ideas on this.
Can't emphasize Tom's number 1 point enough! Bad practice and one day it will "shoot you in the foot".
I would also change your "ON TABLE SUBFOOT" to "ON DUMMY SUBFOOT" -
SET DROPBLNKLINE = ON
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS TEMPCAR
END
-RUN
DEFINE FILE TEMPCAR
DUMMY / A1 = '';
CV_TOTAL_RND1 / D9 = IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND2 / D9 = IF COUNTRY EQ 'FRANCE' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND3 / D9 = IF COUNTRY EQ 'ITALY' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND4 / D9 = IF COUNTRY EQ 'JAPAN' THEN DEALER_COST + RETAIL_COST;
CV_TOTAL_RND5 / D9 = IF COUNTRY EQ 'W GERMANY' THEN DEALER_COST + RETAIL_COST;
END
-RUN
TABLE FILE TEMPCAR
SUM DEALER_COST
OVER RETAIL_COST
BY DUMMY NOPRINT
ACROSS COUNTRY AS ''
ON TABLE ROW-TOTAL AS 'TOT'
ON TABLE SET PAGE NOLEAD
ON DUMMY SUBFOOT
" <ST.CV_TOTAL_RND1<ST.CV_TOTAL_RND2<ST.CV_TOTAL_RND3<ST.CV_TOTAL_RND4<ST.CV_TOTAL_RND5"
ON TABLE SET STYLE *
headalign=body, $
type=subfoot, justify=right, $
ENDSTYLE
END
-RUN
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