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 used SALES instead of SEATS because a COUNTRY can have more than one number of SEATS and Excel will not allow duplicate tab names. I also sorted SALES highest to lowest so the COUNTRY with the highest SALES appears first in the spreadsheet. By appending blanks to the front of the COUNTRY name based on the size of total SALES, I was able to trick WebFOCUS into sorting the countries by SALES for the BYTOC. The blanks in front of the COUNTRY names are compressed and disappear when displayed as spreadsheet tab names.
SET ASNAMES = ON
SET HOLDLIST = PRINTONLY
-*
TABLE FILE CAR
SUM
SALES AS 'COUNTRY_SALES'
BY COUNTRY
PRINT
CAR
SALES
BY COUNTRY
ON TABLE HOLD AS HOLD1
END
-*
TABLE FILE HOLD1
PRINT
CAR
SALES
COMPUTE BLANKS/A10V = IF (COUNTRY_SALES EQ LAST COUNTRY_SALES) THEN LAST BLANKS ELSE (' ' | LAST BLANKS);
COMPUTE SORT_KEY/A15 = BLANKS | COUNTRY ;
BY HIGHEST COUNTRY_SALES
ON TABLE HOLD AS HOLD2
END
-*
TABLE FILE HOLD2
PRINT
CAR
SALES/I9C
BY HIGHEST SORT_KEY NOPRINT
ON SORT_KEY SUBTOTAL
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K BYTOC
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007