Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to only print column total line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to only print column total line
 Login/Join
 
Platinum Member
posted
How do I code this so that only the Grand Total Line prints? I don't want to see the headings or data, only Grand Total line.
 
TABLE FILE CAR
SUM  DCOST    RCOST
BY COUNTRY 
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=SUBTOTAL,
     BY=3,
     COLOR='RED',
	 JUSTIFY=RIGHT,
$
ENDSTYLE
END 


I have a compound report
Report 1 is Total of LOB1
Report 2 is Total of LOB2
Report 3 I need to be the one line Grand total which is the total of LOB1 and LOB2

This seems like is should be easy, maybe I am just going crazy...Smiler
Thanks
JV

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Expert
posted Hide Post
Try this:
TABLE FILE CAR
SUM  DCOST AS '' RCOST AS ''
-*BY COUNTRY 
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
ON TABLE PCHOLD FORMAT EXL07
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
-*     INCLUDE = endeflt,$
TYPE=SUBTOTAL,
-*     BY=3,
     COLOR='RED',
	 JUSTIFY=RIGHT,
$
ENDSTYLE
END 
-EXIT




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Don't really know how you would align the Grand Totals with reports 1/2, but, here's a shot at it...
  
DEFINE FILE CAR
  XDUMMY/A10 = '';
  DUMMY/A12  = 'GRAND TOTAL';
END
TABLE FILE CAR
SUM  
     XDUMMY AS ''
     XDUMMY AS ''
     DUMMY  AS ''
     DCOST  AS ''    
     RCOST  AS ''
     XDUMMY AS ''
     XDUMMY AS ''
     XDUMMY AS ''

BY DUMMY NOPRINT
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=REPORT,
     SQUEEZE=1,
     STYLE=BOLD,
     COLOR='RED',
     JUSTIFY=RIGHT,
$
ENDSTYLE
END 
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
If its just a couple of fields in each request, I would do Dialogue Manager commands to HOLD/READ values and PRINT the final report.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Platinum Member
posted Hide Post
Ok, again thanks for the help. This was pretty easy, just needed a push in the right direction.
Here is what I came up with. All your code worked by the way, I just needed to tweak it to get what they wanted.

DEFINE FILE CAR
CTRY/A15 WITH COUNTRY = '';
END
TABLE FILE CAR
PRINT 
COUNTRY	        NOPRINT
CAR	MODEL	    NOPRINT
BODYTYPE	    NOPRINT
SEATS	        NOPRINT
DEALER_COST	
RETAIL_COST
BY COUNTRY NOPRINT SUBTOTAL AS ''
BY COUNTRY
BY CAR 
BY MODEL
BY BODYTYPE
BY SEATS
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AS 'CONTRACT TOTAL: ENGLAND'
ON TABLE PCHOLD FORMAT EXL07 OPEN
ON TABLE SET STYLE *
     INCLUDE = endeflt,
	 TITLETEXT='ENGLAN',
$
TYPE=DATA
     FONT='Verdana',
     JUSTIFY=CENTER,
	 backcolor=rgb(66 70 73),
	 color=rgb(255 255 255),
$
TYPE=SUBTOTAL,
     BY=1,
	 JUSTIFY=RIGHT,
	 BORDER=OFF,
$
ENDSTYLE
END

DEFINE FILE CAR
CTRY/A15 WITH COUNTRY = '';
END
TABLE FILE CAR
PRINT 
COUNTRY	        NOPRINT
CAR	MODEL	    NOPRINT
BODYTYPE	    NOPRINT
SEATS	        NOPRINT
DEALER_COST	
RETAIL_COST
BY COUNTRY NOPRINT SUBTOTAL AS ''
BY COUNTRY
BY CAR 
BY MODEL
BY BODYTYPE
BY SEATS
WHERE COUNTRY EQ 'W GERMANY';
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AS 'CONTRACT TOTAL: W GERMANY'
ON TABLE PCHOLD FORMAT EXL07 NOBREAK
ON TABLE SET STYLE *
     INCLUDE = endeflt,
	 TITLETEXT='W GERMANY',
$
TYPE=DATA
     FONT='Verdana',
     JUSTIFY=CENTER,
	 backcolor=rgb(66 70 73),
	 color=rgb(255 255 255),
$
TYPE=SUBTOTAL,
     BY=1,
	 JUSTIFY=RIGHT,
	 BORDER=OFF,
$
ENDSTYLE
END

DEFINE FILE CAR
DUMMY/A12='GRAND TOTAL';
DUMMY1/A1='';
END
TABLE FILE CAR
SUM
DUMMY1        AS ''
DUMMY1        AS ''
DUMMY1        AS ''
DUMMY1        AS ''
DUMMY1        AS ''
DEALER_COST	  AS ''
RETAIL_COST   AS ''
BY DUMMY      AS ''
WHERE COUNTRY EQ 'W GERMANY' OR 'ENGLAND';
ON TABLE PCHOLD FORMAT EXL07 CLOSE
ON TABLE SET STYLE *
     INCLUDE = endeflt,
-*	 TITLETEXT='&YR',
$
TYPE=DATA
     FONT='Verdana',
     JUSTIFY=CENTER,
	 BACKCOLOR=RGB(66 70 73),
	 COLOR=RGB(255 255 255),
	 STYLE=BOLD,
	 
$
TYPE=SUBTOTAL,
     BY=1,
	 JUSTIFY=RIGHT,
	 BORDER=OFF,
$
ENDSTYLE
END
  


Thanks again You guys Rock!

JV


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to only print column total line

Copyright © 1996-2020 Information Builders