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 created two reports with Total lines that are quite similar. One looks correct, but the other one has the word "Total" on one line at the bottom, and then the total numbers on a line below it. This is also not attached to the table above it. Any ideas what is going on?This message has been edited. Last edited by: FP Mod Chuck,
-DEFAULT &INDATE = 'PREMONTH' -DEFAULT &FMT = 'PDF' ENGINE SQLORA SET SERVER OSPHD_PROD ENGINE SQLORA EX SP_CR_GET_MONTHLYINJ_QBYTEINJ '&INDATE'; -RUN TABLE FILE SQLOUT PRINT YEAR MONTH PAD WELL_NAME WELL_UWI INJECT_HOURS AVERAGE_PRESSURE AS A_PRESSURE INJECT_STEAM ON TABLE SET ASNAMES ON ON TABLE HOLD AS MVO_HOLD FORMAT ALPHA END
TABLE FILE MVO_HOLD PRINT PAD AS 'PAD' WELL_NAME AS 'Well Name' WELL_UWI AS 'Well UWI' INJECT_HOURS/D12 AS 'Hours on Steam Inj' A_PRESSURE/D12.2 AS 'Average Pressure' INJECT_STEAM/D12.2 AS 'Steam (m3 CWE)' ON TABLE SUBHEAD " <+0>Mackay River Facility - Monthly Injection Report" "Report <+0>For HEADING "RPT-M1901D, MINJ Version 2.0" "Generated <+0>&DATEtMDYY <+0> " ON TABLE SET EMPTYREPORT ANSI ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'Total' INJECT_STEAM ON TABLE PCHOLD FORMAT '&FMT' ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=CM, PAGESIZE='Letter', LEFTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT,
I do not have any "BY" columns, and am only bringing back the total of one column, so I don't see how this can exceed the width of the page.
Tom is suggesting that there's an end double-quote missing in your SUBHEAD line 2.
Subheadings and heading will not be the cause of the Subtotal splitting into two.
Here's your code made executable by anyone by using the CAR file, and the Subtotal gets split into two. There's one or two experts in the forum that might be able to fix this. It might be because there's no BY statements at all.
TABLE FILE CAR
PRINT
SEATS AS 'PAD'
CAR AS 'Well Name'
COUNTRY AS 'Well UWI'
DEALER_COST/D12 AS 'Hours on Steam Inj'
RETAIL_COST/D12.2 AS 'Average Pressure'
WHEELBASE/D12.2 AS 'Steam (m3 CWE)'
ON TABLE SUBHEAD
" <+0>Mackay River Facility - Monthly Injection Report"
"Report <+0>For"
HEADING
"RPT-M1901D, MINJ Version 2.0"
"Generated <+0>&DATEtMDYY <+0> "
ON TABLE SET EMPTYREPORT ANSI
ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'Total' WHEELBASE
-*ON TABLE PCHOLD FORMAT '&FMT'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=CM,
PAGESIZE='Letter',
LEFTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,$
END
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
SET BYDISPLAY=ON DEFINE FILE CAR SEATS/A15 = SEATS; END TABLE FILE CAR PRINT -*SEATS AS 'PAD' CAR AS 'Well Name' COUNTRY AS 'Well UWI' DEALER_COST/D12 AS 'Hours on Steam Inj' RETAIL_COST/D12.2 AS 'Average Pressure' WHEELBASE/D12.2 AS 'Steam (m3 CWE)' BY SEATS AS 'PAD' ON TABLE SUBHEAD " <+0>Mackay River Facility - Monthly Injection Report" "Report <+0>For" HEADING "RPT-M1901D, MINJ Version 2.0" "Generated <+0>&DATEtMDYY <+0> " ON TABLE SET EMPTYREPORT ANSI ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'Total' WHEELBASE -*ON TABLE PCHOLD FORMAT '&FMT' ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=CM, PAGESIZE='Letter', LEFTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT,$ END
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
The underlying problem is space allocation which exhibits itself when using BY field noprint. If there is not enough "space" in the left-most column(s) to print the subtotal label along with the total for that column, it splits the total line with the label on one line and the totals on the next. Basically, if the first field is shorter than about 8-10 characters, you'll get the split when using totals, regardless of whether or not you have a BY field. My common fix is to define DUMMY_FIELD/A8=''; and make then BY DUMMY_FIELD AS '' (or with PRINT make it the first field using AS ''.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007