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.
suppose: example--if i have two tables car1 and car2 and they are joined by a particular field say 'plant',now my question is i need to display the dealer cost and retail cost of both the car tables in the following format. car1 car2 dealer_cost 120000 130000 retail_Cost 140000 134000
where the values dealer and retail cost are the sum values.
dealer_cost and retail_cost are the fields. car1 and car2 are two tables.(joined by say 'plant')
please help me solve this problem.This message has been edited. Last edited by: Kerry,
WebFOCUS Version 7.6.7 windows PDF
Posts: 44 | Location: Huntsville,Alabama | Registered: April 25, 2009
I believe this should be pretty close to what you are intending to get.
JOIN CLEAR *
JOIN PLANT IN CAR1 TO PLANT IN CAR2 AS JN1
-*
TABLE FILE CAR1
SUM
CAR1.SEG1.DEALER_COST CAR2.SEG1.DEALER_COST AS ''
OVER
CAR1.SEG1.RETAIL_COST CAR2.SEG1.RETAIL_COST AS ''
END
Best regards, Sandeep Mamidenna
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
Sandeep's code is close to what you're looking for. This should do it:
JOIN CLEAR *
JOIN PLANT IN CAR1 TO PLANT IN CAR2 AS JN1
TABLE FILE CAR1
SUM
COMPUTE TXT1/A11 = 'dealer_cost'
CAR1.SEG1.DEALER_COST AS ''
CAR2.SEG1.DEALER_COST AS ''
OVER
COMPUTE TXT2/A11 = 'retail_Cost'
CAR1.SEG1.RETAIL_COST AS ''
CAR2.SEG1.RETAIL_COST AS ''
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
JOIN CLEAR *
JOIN PLANT IN CAR1 TO PLANT IN CAR2 AS JN1
TABLE FILE CAR1
SUM
COMPUTE TXT0A/A10 = 'Measure'
COMPUTE TXT0B/A10 = 'CAR1'
COMPUTE TXT0C/A10 = 'CAR2'
OVER
COMPUTE TXT1/A11 = 'dealer_cost' AS ''
CAR1.SEG1.DEALER_COST AS ''
CAR2.SEG1.DEALER_COST AS ''
OVER
COMPUTE TXT2/A11 = 'retail_Cost' AS ''
CAR1.SEG1.RETAIL_COST AS ''
CAR2.SEG1.RETAIL_COST AS ''
END
would be closer to what you're looking for.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server