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.
Sorry, I should have posted my code so that you could see why I need to do this in the stylesheet. I need to run the first part this way to get all of the column headers on the same line (the ACROSS column headers appear one line up from the rest). So when I do the PRINT * for the second part, it gives me all of the BY fields, and all of the ACROSS fields, but the ACROSS fields are just the field names from the hold file, even if I give them an alias.
TABLE FILE LIFECYCLEA
SUM
ROWTOT AS ''
BY FIELDA AS 'FIELDA'
BY FIELDB AS 'FIELDB'
BY FIELDC AS 'FIELDC'
BY FIELDD AS 'FIELDD'
ACROSS REJECTER
ACROSS-TOTAL AS 'TOTAL'
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT *
ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
How about redefining the ACROSS field and using LCWORD?
DEFINE FILE CAR
COUNTRY_MIX/A100 = LCWORD(10, COUNTRY, COUNTRY_MIX);
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS 'FIELDA'
BY MODEL AS 'FIELDB'
ACROSS COUNTRY_MIX
ACROSS-TOTAL AS 'TOTAL'
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
DEFINE FILE CAR
COUNTRY_MIX/A100 = LCWORD(10, COUNTRY, COUNTRY_MIX);
Car/A16 = CAR;
Model/A24 = MODEL;
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY Car
BY Model
ACROSS COUNTRY_MIX
ACROSS-TOTAL AS 'Total'
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
Or you could add a TITLE to the fields in the master?
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS 'Field1'
BY MODEL AS 'Field2'
ACROSS COUNTRY
ACROSS-TOTAL AS 'Total'
ON TABLE SET ASNAMES MIXED
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT *
-*ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT