Focal Point
[CLOSED] Possible to get an empty report?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7027003776

July 17, 2015, 12:27 PM
texgator
[CLOSED] Possible to get an empty report?
I am using format 'DFIX DELIMITER |' and when no records are returned, I need the output file to be empty but it always has one line with '| | | |0|0|' in it. Is it possible to force the file to be empty? Thanks.

APP HOLD FOLDERNAME
TABLE FILE CAR
PRINT *
WHERE COUNTRY EQ 'SDFDF'
ON TABLE HOLD AS EMPTYREPORTTEST FORMAT DFIX DELIMITER |
END

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


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
July 17, 2015, 03:27 PM
jfr99
Hi,

Try this ---> ON TABLE SET EMPTYREPORT ON

Here is an example that created an empty file for me.

-*
FILEDEF HOLDCAR DISK holdcar.txt
-*
TABLE FILE CAR
PRINT
SEATS
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ 'SDFDF'
ON TABLE SET EMPTYREPORT ON
ON TABLE HOLD AS HOLDCAR FORMAT DFIX DELIMITER |
END
-RUN

Hope this helps.


WebFocus 8.201M, Windows, App Studio