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.
I want the total number of 'X's in the column otherwise I have to create a subfoor for the compute fields then align the columns (which is extremly hard to do).
I don't think your intended approach will work. There are subtotals that will work with alpha fields, but they are just that - subtotals - for an alpha field, that means the last value. You can also use the CNT. prefix, but that is just a count. You want to count only where a value equals 'X'. Could you just use a '1' instead of an 'X' and get what you need? Otherwise you'll need to define another column to subtotal or use in a footing/subfooting as Frank suggests.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Here's one way to determine the number of X's in each row for a particular column.
I'm using the CAR file as an example. I'm using 'O' instead of 'X' in this example.
The STRIP function removes the specified character from the given string. The ARGLEN function returns the non-trailing-spaces length of a string. Combine STRIP and ARGLEN to determine the count of the specified character.
DEFINE FILE CAR
XSTRIP/A24 = STRIP(24, MODEL, 'O', 'A24');
XCOUNT/D4 = ARGLEN(24, MODEL, 'I4') - ARGLEN(24, XSTRIP, 'I4');
END
TABLE FILE CAR
PRINT
MODEL
XCOUNT
END
You will, of course have to fiddle about with SUBFOOT if you don't want the Count column in the report.
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