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 have a report that kinda looks like this: TABLE FILE CAR PRINT DEALER_COST RETAIL_COST SALES BY COUNTRY ACROSS BODYTYPE ON TABLE PCHOLD FORMAT EXL2K END
The business wants to output the report to an Excel spreadsheet so they can in turn run other processes on it. But, they require that the Bodytype value appear on the header line for EACH print column as opposed to the Bodytype value spanning all three print columns. See desired output below:
COUNTRY COUPE COUPE COUPE HARDTOP DEALER_COST RETAIL_COST SALES DEALER_C ------- ----------- ----------- ----- -------- ENGLAND 9,999.99 9,999.99 999 9,999.99
Notice Coupe appear on all three print columns, then Hardtop appears on the next 3 columns, etc. (Can't show the rest since the text wraps).
I tried doing this PRINT DEALER_COST AS ' but, it didn't work.
DEFINE FILE CAR
BODYTYPE_TEXT/A10 = 'BODYTYPE';
END
TABLE FILE CAR
PRINT
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY
ACROSS BODYTYPE AS ''
ACROSS BODYTYPE_TEXT AS ''
ON TABLE PCHOLD FORMAT EXL2K
END
If it's acceptable to have the text 'BODYTYPE' under instead of over the BODYTYPE, then here's a quick and dirty solution which hopefully works for your real-world problem.
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
Francis - Excellent suggestion, except, the ACROSS value still spans across all three fields. I was hoping the ACROSS value will appear on EVERY print column.
do it the hard way use HEADALIGN=BODY and make a HEADER line with COLSPAN HEADING "<+0> nothing <+>bodytype<+0>bodytype<+>bodytype" TYPE=HEADING,LINE=1,ITEM=1,COLSPAN=6,$ TYPE=HEADING,LINE=1,ITEM=2,COLSPAN=1,$ ...etc tinker around till you get this header row to behave like you want it to.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Originally posted by Piipster: FILEDEF FSEQ DISK C:\IBI\APPS\BASEAPP\FSEQ.MAS -RUN JOIN BLANC WITH DEALER_COST IN CAR TO CONTROL IN FSEQ AS J1 DEFINE FILE CAR BLANC/A1 = ' '; DISP_VALUE/D9 = IF COUNTER EQ 1 THEN DEALER_COST ELSE IF COUNTER EQ 2 THEN RETAIL_COST ELSE SALES; DISP_TITLE/A12 = IF COUNTER EQ 1 THEN 'DEALER_COST' ELSE IF COUNTER EQ 2 THEN 'RETAIL_COST' ELSE 'SALES'; END TABLE FILE CAR SUM DISP_VALUE AS '' BY COUNTRY ACROSS BODYTYPE AS '' NOPRINT ACROSS COUNTER NOPRINT ACROSS BODYTYPE AS '' ACROSS DISP_TITLE AS '' WHERE COUNTER LE 3; ON TABLE PCHOLD FORMAT EXL2K END