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     Total Columns In Compund BYTOC EXCEL Multiple Tabs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Total Columns In Compund BYTOC EXCEL Multiple Tabs
 Login/Join
 
Silver Member
posted
I am trying to get the columns in the SET COMPOUND=BYTOC report to total on specific columns.
Begin Balance
Current Balance
Payment Amount
If I use ON TABLE COLUMN-TOTAL AS 'TOTAL' BEG_BALANCE I get another tab in the excel workbook. I am wanting a total on the specific columns on each tab.
Any help would greatly be appreciated.

DEFINE FILE FCLWIUAM
DATEESTABLISHED/MDYY = DATECVT(CYMD, 'A8YYMD', 'YYMD');
FROMDATE/MDYY = DATECVT(FROM_DATE, 'A8YYMD', 'YYMD');
TODATE/MDYY = DATECVT(TO_DATE, 'A8YYMD', 'YYMD');
PAYMENTDATE/MDYY = DATECVT(PYMT_ENTER, 'A8YYMD', 'YYMD');
END
TABLE FILE FCLWIUAM
PRINT
     PREFIX AS 'Prefix'
     DCN AS 'Debtor ID'
     PGM AS 'Program'
     DATEESTABLISHED AS 'Date Established'
     FROMDATE AS 'From Date'
     TODATE AS 'To Date'
     BEG_BALANCE/P11.2M AS 'Begin Balance'
     WIUAM.CUR_BALANCE/P11.2M AS 'Current Balance'
     CLAIM_STATUS AS 'Claim, Status'
     WIU_STATUS AS 'WIU, Status'
     WIU_ACTION AS 'WIU, Action'
     LEGAL_ACTION AS 'Legal, Action'
     CAUSE_CODE AS 'Cause'
     PAYMENTDATE AS 'Payment Date'
     PYMT_TRANS AS 'Tran Type'
     PYMT_AMT/P11.2M AS 'Payment Amount'
     DEBTOR_COUNTY AS 'Debtor, County'
	 BY WIUAM.PGM NOPRINT
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT EXL2K OPEN
END
SET COMPOUND=BYTOC
DEFINE FILE FCLWIUAM
DATEESTABLISHED/MDYY = DATECVT(CYMD, 'A8YYMD', 'YYMD');
FROMDATE/MDYY = DATECVT(FROM_DATE, 'A8YYMD', 'YYMD');
TODATE/MDYY = DATECVT(TO_DATE, 'A8YYMD', 'YYMD');
PAYMENTDATE/MDYY = DATECVT(PYMT_ENTER, 'A8YYMD', 'YYMD');
END
TABLE FILE FCLWIUAM
PRINT
     PREFIX AS 'Prefix'
     DCN AS 'Debtor ID'
     PGM AS 'Program'
     DATEESTABLISHED AS 'Date Established'
     FROMDATE AS 'From Date'
     TODATE AS 'To Date'
     BEG_BALANCE/P11.2M AS 'Begin Balance'
     CUR_BALANCE/P11.2M AS 'Current Balance'
     CLAIM_STATUS AS 'Claim, Status'
     WIU_STATUS AS 'WIU, Status'
     WIU_ACTION AS 'WIU, Action'
     LEGAL_ACTION AS 'Legal, Action'
     CAUSE_CODE AS 'Cause'
     PAYMENTDATE AS 'Payment Date'
     PYMT_TRANS AS 'Tran Type'
     PYMT_AMT/P11.2M AS 'Payment Amount'
     DEBTOR_COUNTY AS 'Debtor, County'
BY TOTAL COMPUTE FYPROGTYPE/A26 = 'FY2013-WIU-Program-Type-' || PGM; NOPRINT
-*ON TABLE COLUMN-TOTAL AS 'TOTAL' BEG_BALANCE'

ON TABLE PCHOLD FORMAT EXL2K

This message has been edited. Last edited by: <Kathryn Henning>,


Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
ON TABLE applies to the entire report so instead of using an "ON TABLE TOTAL" you need to use "ON {Your Selected By Field) SUBTOTAL".


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Silver Member
posted Hide Post
I have the report breaking on FYPROGTYPE which puts each program type on separate tabs but when I add the BY field with the BEG_BALANCE I get the error below. I do not want to total on the first by field.
  
BY TOTAL COMPUTE FYPROGTYPE/A26 = 'FY2013-WIU-Program-Type-' || PGM; NOPRINT
BY BEG_BALANCE NOPRINT
ON TABLE BEG_BALANCE SUBTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END
0 ERROR AT OR NEAR LINE    140  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC002) A WORD IS NOT RECOGNIZED: BEG_BALANCE
 BYPASSING TO END OF COMMAND
 (FOC3298) ERROR FOUND IN A COMPOUND REPORT
 Compound Report is TERMINATING.....





Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
The columns I am trying to total on each excel tab are the following;
BEG_BALANCE/P11.2M AS 'Begin Balance'
CUR_BALANCE/P11.2M AS 'Current Balance'
PYMT_AMT/P11.2M AS 'Payment Amount'


Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
The suggested resolution did not work. Not sure why this was closed.


Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
ON TABLE BEG_BALANCE SUBTOTAL

Not what Alex suggested. This should be ON BEG_BALANCE SUBTOTAL.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
I changed to ON BEG_BALANCE SUBTOTAL and I get the following error

0 NUMBER OF RECORDS IN TABLE= 4502 LINES= 4502
0 ERROR AT OR NEAR LINE 75 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC013) THE 'ON FIELDNAME' FIELD IS NOT A SORT FIELD: SUBTOTAL
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT
(FOC3298) ERROR FOUND IN A COMPOUND REPORT
Compound Report is TERMINATING.....
I did not intend on using the BEG_BALANCE as a sort field.

 
BY TOTAL COMPUTE FYPROGTYPE/A26 = 'FY2013-WIU-Program-Type-' || PGM; NOPRINT 
ON TABLE NOTOTAL
ON BEG_BALANCE SUBTOTAL
ON TABLE PCHOLD FORMAT EXL2K


I also tried by adding the by field.

  
BY BEG_BALANCE NOPRINT
BY TOTAL COMPUTE FYPROGTYPE/A26 = 'FY2013-WIU-Program-Type-' || PGM; NOPRINT
ON TABLE NOTOTAL
ON BEG_BALANCE SUBTOTAL
ON TABLE PCHOLD FORMAT EXL2K


This gave me the message
Unknown error occurred. Agent on reporting server EDACDSS2 may have crashed. Please investigate reporting server log.
Is there no way to do this without a by field?


Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report 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     Total Columns In Compund BYTOC EXCEL Multiple Tabs

Copyright © 1996-2020 Information Builders