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.
Some days you just have a mental block and cannot 'Past the wall'... I have having a difficult time coding a table request and I wonder if anyone has a suggestion on how to solve this problem.
TABLE FILE FEES1 HEADING CENTER "SANTA CLARITA MORENO BUSINESS" "PCO " " SUM YTD/C BY BPCO NOPRINT PAGE-BREAK BY LOB NOPRINT BY YEAR NOPRINT BY DESC_SORT NOPRINT BY DESCRIPTION AS 'FEE' BY BLANK AS ' ' ON BPCO SUMMARIZE FOOTING BOTTOM "MIS REPORT: &FOCFOCEXEC <35 REPORT RUN DATE: &DATEMDYY" "DISTRIBUTION: T FITZSIMMONS" END -RUN
Unfortunately, I am trying to get beyond this point with a report to list sum of all installments, policy fees, etc. for the given PCO in a calendar (ie. 2004).
Generally when you want both a summation and a detail listing on one report it is easier to use mulitple sentences... eg. Sum AMOUNT by Year SUM AMOUNT by year by detail
.... although I don't think that will quite give you what you want in this instance, as it appears that you want a subtotal as the first row of data and not after each break on which the subtotal is performed?
You could use FML but you would have to make it flexible by saving out the sort fields and then using them in the FOR statement. This could get a bit messy.
Another method is to double pass the data and append into a temporary file -
FILEDEF TEMPFILE DISK TEMPFILE.FTM (APPEND
-RUN
TABLE FILE GGSALES
SUM DOLLARS
COMPUTE STATE/A60 = 'Subtotal of Dollars for '|REGION|' Region';
COMPUTE SOURCE/A1 = '1';
BY REGION
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS TEMPFILE FORMAT ALPHA
END
TABLE FILE GGSALES
SUM DOLLARS
COMPUTE STATE/A60 = ST;
COMPUTE SOURCE/A1 = '2';
BY REGION
BY ST NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS TEMPFILE FORMAT ALPHA
END
-RUN
TABLE FILE TEMPFILE
SUM DOLLARS
BY REGION NOPRINT
BY SOURCE NOPRINT
BY STATE
END
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, 2004