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 want to add blank rows in a report. it should be in tabular format and not a blank row in footer. also, the blank rows should always be at the end of the table.
Thanks in advance Ashwini RaneThis message has been edited. Last edited by: FP Mod Chuck,
The questions to Danny are legitimate and can change the way of doing things.
Here is an option
DEFINE FILE CAR
NB_SEATS /I3 MISSING ON = SEATS;
END
TABLE FILE CAR
PRINT NB_SEATS
BY TOTAL COMPUTE DUMMY /I2 = 1;
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS EXTDATA
END
-RUN
TABLE FILE CAR
PRINT COMPUTE NB_SEATS /I3 MISSING ON = MISSING;
BY TOTAL COMPUTE DUMMY /I2 = 99;
BY TOTAL COMPUTE COUNTRY /A10 = '';
BY TOTAL COMPUTE CAR /A16 = '';
BY TOTAL COMPUTE MODEL /A24 = '';
BY COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 4;
ON TABLE HOLD AS DUMMYDATA
END
-RUN
TABLE FILE EXTDATA
PRINT NB_SEATS
BY DUMMY
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS RPTDATA
MORE
FILE DUMMYDATA
END
-RUN
SET NODATA = ''
TABLE FILE RPTDATA
PRINT NB_SEATS AS 'SEATS'
BY DUMMY NOPRINT
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET BYDISPLAY ON
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
-SET &ECHO=ALL;
-* File AR_McGuyver.fex
-DEFAULT &BLANKLINES=5
-SET &BLANKLINES=&BLANKLINES + 1;
SET NODATA = ' '
-*
JOIN BLANK WITH SALES IN CAR TO BLANK IN FSEQ AS B_
-*
DEFINE FILE CAR
BLANK/A1 WITH SALES=' ';
SRT/I3=IF COUNTER EQ 1 THEN 1 ELSE 2;
XSALES/I5S=IF COUNTER GT 1 THEN 0 ELSE SALES;
XCOUNTRY/A10=IF COUNTER GT 1 THEN ' ' ELSE COUNTRY;
XCAR/A16=IF COUNTER GT 1 THEN ' ' ELSE CAR;
XSEATS/I3S=IF COUNTER GT 1 THEN 0 ELSE SEATS;
END
-*
TABLE FILE CAR
BY SRT NOPRINT
BY COUNTER NOPRINT
SUM XSALES AS SALES
BY XCOUNTRY AS COUNTRY
BY XCAR AS CAR
BY XSEATS AS SEATS
ACROSS MPG IN-GROUPS-OF 10
WHERE COUNTER LE &BLANKLINES
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=ENDEFLT.STY, $
GRID=OFF, $
ENDSTYLE
END
MacGuyver FSEQ master (change the directory from FOCALPOINT to the name of the directory where fseq.txt is placed:
TABLE FILE CAR
SUM SALES BY COUNTRY BY CAR
ON TABLE HOLD
WHERE COUNTRY NE 'ENGLAND';
END
-* find out the number of records.
DEFINE FILE HOLD
COUNTER/I3 = COUNTER + 1;
SALES/I6S = SALES;
END
TABLE FILE HOLD
PRINT SALES COUNTRY CAR
BY COUNTER
ON TABLE HOLD FORMAT ALPHA
END
?FF HOLD
-* find the hightest counter.
TABLE FILE HOLD
SUM MAX.COUNTER
ON TABLE SAVE
END
-RUN
-READ SAVE &COUNTER.I3.
-* append 4 blank records.
FILEDEF SAVE DISK hold.ftm (APPEND
DEFINE FILE HOLD
COUNTER/I3 = IF LAST COUNTER EQ 0 THEN &COUNTER +1 ELSE LAST COUNTER + 1;
-* make some blank values. use the formats from ?FF HOLD
COUNTRY/A10 = ' ';
CAR/A16 = ' ';
SALES/I6S = ;
END
TABLE FILE HOLD
PRINT SALES COUNTRY CAR
BY COUNTER
WHERE RECORDLIMIT EQ 4
ON TABLE SAVE
END
-* produce the final report.
FILEDEF HOLD DISK hold.ftm
TABLE FILE HOLD
PRINT *
END
Ashwini, As you can see there is always more than one way to solve a problem with WebFOCUS. The basic difference between your solution and mine is the number of times the data is read and this can be of the essence with large data sets.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006