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.
Just have two reports, the first with the first three rows, the second with the rest.
You should be able to get away with the two in the same window.
-*new file
DEFINE FILE CAR
CNTR/I9 WITH COUNTRY = LAST CNTR + 1 ;
END
TABLE FILE CAR
PRINT COUNTRY
WHERE CNTR LE 3
END
TABLE FILE CAR
PRINT COUNTRY AS ''
ON TABLE SET PAGE NOLEAD
WHERE CNTR GT 3
END
You will have to make sure the width of the columns match though.
HFREEZE maybe? No? Well, at least it was fun. The CAR file produces so little data I had to set SCROLLHEIGHT=1 to get the report to scroll.
SET ASNAMES = ON
SET BYDISPLAY = ON
SET HOLDLIST = PRINTONLY
TABLE FILE CAR
SUM SALES
COMPUTE CNTR/I9 = LAST CNTR + 1 ;
BY COUNTRY
BY CAR
WHERE TOTAL CNTR LE 3 ;
ON TABLE HOLD AS FIRST3
END
DEFINE FILE FIRST3
BR/A4 = '<hr>';
END
TABLE FILE FIRST3
SUM BR COUNTRY
ACROSS CNTR NOPRINT
ON TABLE SAVE AS RPTHEAD
END
FILEDEF RPTHEAD DISK RPTHEAD.FTM (APPEND
TABLE FILE FIRST3
SUM BR CAR
ACROSS CNTR NOPRINT
ON TABLE SAVE AS RPTHEAD
END
TABLE FILE FIRST3
SUM BR SALES
ACROSS CNTR NOPRINT
ON TABLE SAVE AS RPTHEAD
END
-RUN
-READ RPTHEAD, &RPTHEAD1
-READ RPTHEAD, &RPTHEAD2
-READ RPTHEAD, &RPTHEAD3
TABLE FILE CAR
HEADING
"FREEZE FIRST 3 ROWS OF DATA"
SUM SALES AS '[b]SALES[/b]&RPTHEAD3'
COMPUTE CNTR/I9 = LAST CNTR + 1 ; NOPRINT
BY COUNTRY AS '[b]COUNTRY[/b]&RPTHEAD1'
BY CAR AS '[b]CAR[/b]&RPTHEAD2'
WHERE TOTAL CNTR GE 4 ;
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, HFREEZE=TOP, SCROLLHEIGHT=1, $
TYPE=HEADING, HEADALIGN=BODY, $
TYPE=HEADING, LINE=1, COLSPAN=3, JUSTIFY=CENTER, $
TYPE=TITLE, BACKCOLOR=SILVER, $
ENDSTYLE
END
This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007