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.
1. You can add a COMPUTE field to Master File by opening the .mas file in the editor, selecting the segment name and right click on segment name. It gives you the option to add a Define field, Compute field, Groupd field.
Thanks Francis, I found some details on group field in master file
You can assign a unique name to multiple fields to create a group field. A group field is created by two or more alphanumeric fields, physically next to each other. A group field provides an efficient means for grouping similar or logically connected fields that will be accessed as a single unit, but do not warrant a separate segment.
1. You can add a COMPUTE field to Master File by opening the .mas file in the editor, selecting the segment name and right click on segment name. It gives you the option to add a Define field, Compute field, Groupd field.
Thks
I am using version 7.1 and I dont see Add compute field either
We've used DEFINEd fields in lots of MFD that reference ORACLE and MS/SQL tables. After WebFOCUS receives each each table row from the DBMS, it adds and evaluates the DEFINEd fields. The DEFINEs exist only in the buffer area FOCUS uses to hold records passed to it from the DBMS. I don't see why COMPUTEs wouldn't be handled in the same way. DEFINE and COMPUTEs in the MFD differ only in the method used and time at which their value is determined.
WIN/2K running WF 7.6.4 Development via DevStudio 7.6.4, MRE, TextEditor. Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005
Since I don't have WF 7, I'd love someone to post a Master that has a COMPUTE in it. I just cannot see how a COMPUTE would work in a Master, since COMPUTEs are evaluated after the data is aggregated and a Master describes the non-aggregated data.
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
This feature is available in Version 7 Release 1.3 and higher. Computed fields that are created from the Master File are available in the fields lists of the Report Painter. This kind of computed field is identified as the Master File Computed Field and is differentiated from the Defined fields and the other Computed fields. You can use a computed field: ❏ As a BY sort field. The BY sort is automatically converted to a TOTAL field since calculated values are calculated after data has been sorted and aggregated, but before the report is displayed. Since sorting (BY) has already been done, the phrase BY TOTAL is used to indicate that this sort is performed after any BY sorting. This applies to calculated values from the Master File and temporary calculated values. ❏ In a WHERE TOTAL statement. When you use calculated values for selection criteria, the WHERE is automatically converted to WHERE TOTAL. This occurs because the WHERE TOTAL is added after the data is retrieved and sorted, but before the report is finalized. This applies to selection criteria created with calculated values from the Master File and temporary calculated values. ❏ As a SUM or DETAIL field.
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
As for when DEFINE and computes are evaluated ... When TABLE can, it will ship the define expression to the SQL engine. But logically, the answer is the same. Computes are never shipped to the DBMS engine (though parts of compute can be --- SUM.flda + SUM.fldb the summing can be shipped). Computes are evaluated AFTER all the summing has happened (at the same time WHERE TOTAL is evaluated).
Brian Suter VP WebFOCUS Product Development
Posts: 200 | Location: NYC | Registered: January 02, 2007