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.
SET LINES = 99999
SET BYDISPLAY = ON
SET COMPOUND = BYTOC
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
SALES
BY COUNTRY NOPRINT
ON COUNTRY SUBTOTAL SALES AS ''
ON TABLE PCHOLD FORMAT EXL2K
END
To sum up my problem, with this code I get this:
ENGLAND JAGUAR V12XKEAUTO 0 ENGLAND JAGUAR XJ12LAUTO 12000 ENGLAND JENSEN INTERCEPTORIII 0 ENGLAND TRIUMPH TR7 0 ENGLAND BLANK BLANK BLANK 12000
But I would like to obtain this:
ENGLAND JAGUAR V12XKEAUTO 0 ENGLAND JAGUAR XJ12LAUTO 12000 ENGLAND JENSEN INTERCEPTORIII 0 ENGLAND TRIUMPH TR7 0 BLANK BLANK BLANK 12000
Any idea? I looked for a solution on the Webfocus Help and on this forum but I didn't find the solution.This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.4 running on Windows Output formats : PDF, Excel and HTML My blog
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007
To get the output the way you want, I think you will need to use SUBFOOT instead of SUBTOTAL. Try this:
SET LINES = 99999
SET BYDISPLAY = ON
SET COMPOUND = BYTOC
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
SALES
BY COUNTRY NOPRINT
ON COUNTRY SUBFOOT
"<+0> <+0> <+0> <ST.SALES "
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, $
ENDSTYLE
END
Edit: Need to use ST.SALES instead of TOT.SALES in the SUBFOOT.This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
i posted this just after Dan, his method would be better, im using the dirty 'white text' method to do some painting over.
===================================
This should do it
SET LINES = 99999 SET BYDISPLAY = ON SET COMPOUND = BYTOC DEFINE FILE CAR BLANK/A1 WITH COUNTRY=''; END
TABLE FILE CAR PRINT CAR MODEL SALES BY COUNTRY BY BLANK NOPRINT
ON COUNTRY SUBTOTAL AS ''
ON BLANK SUBTOTAL AS ' ' ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, $ TYPE=SUBTOTAL, BY=1, COLOR='WHITE', $ ENDSTYLE END
81.05 All formats
Posts: 56 | Location: Manchester | Registered: November 21, 2006
SET LINES = 99999
SET BYDISPLAY = ON
SET COMPOUND = BYTOC
DEFINE FILE CAR
BLANK/A1 = ' ' ;
END
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
SALES
BY COUNTRY NOPRINT
BY BLANK NOPRINT
ON BLANK SUBTOTAL SALES AS ''
ON TABLE PCHOLD FORMAT EXL2K
END