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.
Hi, I was in need of subtracting the data from one of the hold file.It would be kind enough if anyone has done this before. I know we have a MORE command to append the files but in my case i need to subtract the data.Any suggestion with FOCUS would be appreciated rather than using the FML --RECAP .
TABLE FILE CAR
SUM
SALES_COST
RETAIL_COST
ON TABLE HOLD AS HOLD1
MORE
FILE
HOLD2
MORE
FILE HOLD3
I need to implement like (HOLD1+HOLD2)-HOLD3
Regards, MSAMThis message has been edited. Last edited by: Kerry,
I'm not too sure what you mean by subtract the data, but if you want to subtract the SALES_COST and RETAIL-COST column values in files HOLD2 and HOLD3 from the column values in file HOLD1, then when creating HOLD2 and HOLD3, multiply the values by -1. Then, issuing the MORE command will add the column values of the three HOLD files together, in fact subtracting the second and third from the first.
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
-* File fmtest4.fex
SET ASNAMES=ON
SET HOLDFORMAT=ALPHA
SET HOLDLIST=PRINTONLY
-RUN
TABLE FILE GGSALES
SUM
UNITS/D10
DOLLARS/D10
BY REGION
WHERE CATEGORY EQ 'Coffee'
ON TABLE HOLD AS H001
END
-RUN
TABLE FILE GGSALES
SUM
COMPUTE UNITSN/D10 = UNITS * (-1); AS UNITS
COMPUTE DOLLARSN/D10 = DOLLARS * (-1); AS DOLLARS
BY REGION
WHERE CATEGORY EQ 'Food'
ON TABLE HOLD AS H002
END
-RUN
TABLE FILE GGSALES
SUM
COMPUTE UNITSN/D10 = UNITS * (-1); AS UNITS
COMPUTE DOLLARSN/D10 = DOLLARS * (-1); AS DOLLARS
BY REGION
WHERE CATEGORY EQ 'Gifts'
ON TABLE HOLD AS H003
END
-RUN
TABLE FILE H001
SUM
UNITS
DOLLARS
BY REGION
MORE
FILE H002
MORE
FILE H003
END
-RUN
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