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.
When I have subtotals for 2, 4, and 5 seats I get three set of subtotals, which is what I want. When I have a subtotal for 5 seats I get one set of subtotals. I do not want this because the subtotal is the same as the total. It appears it is from the Department of Redundancy Department! Can I suppress the subtotal when there is only one subtotal?
Try this with and without the WHERE statement: TABLE FILE CAR PRINT CAR MODEL SEATS BY SEATS NOPRINT ON SEATS SUBTOTAL AS 'Total' -*WHERE SEATS EQ 5 ENDThis message has been edited. Last edited by: Kerry,
MULTILINES will suppress the SUBTOTAL when there is only one detail line. I have multiple detail lines but one subtotal line. You can see this by adding a second where of: WHERE CAR EQ 'JAGUAR'
If you want the subtotals and the grandtotal to show in case there are more than 1 by values, the SUBTOTAL command works fine. If you want only the one subtotal line when there is just 1 by value, you would also need the ON TABLE NOTOTAL command. These two are mutually exclusive, when used in the same request. You could try to follow a different approach, the one of the intermediate hold file:
TABLE FILE CAR
PRINT CAR MODEL SEATS
BY SEATS NOPRINT
WHERE SEATS EQ 5
ON TABLE HOLD AS REP_DATA
END
TABLE FILE REP_DATA
COUNT DST.SEATS
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS SEATS FORMAT ALPHA
END
-RUN
-READ SEATS &SEATS.5.
-SET &TOTAL = IF &SEATS EQ 1 THEN 'TABLE' ELSE 'SEATS';
TABLE FILE REP_DATA
PRINT CAR MODEL SEATS
BY SEATS NOPRINT
ON &TOTAL SUBTOTAL AS 'Total'
END
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007