Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]getting NO LINES of data passed through to Excel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]getting NO LINES of data passed through to Excel
 Login/Join
 
Member
posted
I am currently using Report Castor to run a daily repot that produces an Excel output. The report works find under normal conditions, however, on certain days, if finds that there is no data to report. (No Lines) In these situations, the report crashes, and the end-user assumes that something irregular happened. How can I use &Lines to send a note to the end-user (presumably through Report Castor) that there were NO RECORDS THAT MET THE CRITERIA rather than simply failing. I've notice on some other forums various techniques for outputting friendly HTML messages... but I need to communicate back to the end user either through a 1 line string of text embedded in EXCEL or through Report Castor. Thx. MRd

This message has been edited. Last edited by: <Emily McAllister>,


WebFocus APP Studio (WFAS)
v 8.1.05
MS Windows Server - 32 bit
 
Posts: 4 | Location: EDMONTON, AB, CANADA | Registered: November 17, 2015Report This Post
Virtuoso
posted Hide Post
Do you have EMPTYREPORT set to on or off in the report?

Here's one way to accomplish this:
TABLE FILE CAR
PRINT CAR BY COUNTRY
WHERE COUNTRY EQ 'CHINA';
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET EMPTYREPORT OFF
END
-IF &LINES NE 0 GOTO GOT_DATA;
-* the NODATA report
TABLE FILE CAR
HEADING
" Your report is empty. "
PRINT CAR NOPRINT
WHERE RECORDLIMIT EQ 1;
WHERE READLIMIT EQ 1;
END
-RUN
-GOT_DATA

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]getting NO LINES of data passed through to Excel

Copyright © 1996-2020 Information Builders