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.
we are new to webfocus . please help me on the below problem.
SET LINES=99999
TABLE FILE EMP PRINT IID -*COMPUTE RNR=RNR+1; ON TABLE HOLD END
TABLE FILE HOLD PRINT IID COMPUTE RF/I1 = IF IID EQ 34082 THEN 1 ELSE IF IID EQ 34154 THEN 1 ELSE IF IID EQ 34158 THEN 1 ELSE IF IID EQ 34169 THEN 1 ELSE 0; ON TABLE HOLD END
DEFINE FILE HOLD RF1/I1=IF RF NE 0 THEN RF ELSE LAST RF1; END
Also, it sometimes is a little boring to read somebody else's code, it would be a lot better if you could post code that uses one of the IBI supplied data tables (CAR, GGORDER, CENTCRED, etc) - in that way, we could run the code and resolve the issue much faster.
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
Here is some suggestion from our expert, expanding on Francis’ example: (many thanks for Francis' input )
remove:
DEFINE FILE HOLD RF1/I1 = IF RF NE 0 THEN RF ELSE LAST RF1; END -RUN
TABLE FILE HOLD PRINT IID RF RF1 BY IID END -RUN
and change it to :
TABLE FILE HOLD PRINT IID RF COMPUTE RFA/I1=IF RF EQ 1 THEN (IF RFA EQ 0 THEN 1 ELSE 0) ELSE LAST RFA; COMPUTE RF1/I1=IF RF EQ 1 THEN 1 ELSE RFA; BY IID END -RUN
Also, please note that when using LAST in a DEFINE, the data must be in the expected sort order, but when using it in a COMPUTE the order is determined by the BY phrases in the TABLE request.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004