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] Tab delimited file when no record found

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Tab delimited file when no record found
 Login/Join
 
Member
posted
Hi,
Currently we are scheduling a WebFocus report with Report Caster which produces TABT format output and distributes to Report Library. When there is no record to print in the output, We receive a Report Caster message "No report to distribute" and there is nothing found in Report Library. However, if the output format is changed to COMMA or EXL2K then we get an empty CSV/XLS file(with no record found message) generated and distributed to report library. Is this the limitation with TAB/TABT/COMT format or is there any way we can override this behavior? Can you please share your valuable inputs?
I have attached the sample code(report identifies Report Caster schedules older than given date)
Thanks very much
  SQL SQLORA PREPARE SQLOUT FOR
SELECT
A.SCHEDULEID "SCHEDULE ID",
B.STARTDATE "START DATE",
A.DOMAINHREF "DOMAIN"
FROM
BOTCAT A,
BOTSCHED B,
WHERE
A.SCHEDULEID = B.SCHEDULEID
B.STARTDATE < &AS_OF_DATE
ORDER BY B.STARTDATE
END
-*---------------------------------------------------------------------------------------------------------------------
TABLE FILE SQLOUT
PRINT
SCHEDULE_ID AS 'Schedule Id'
START_DATE AS 'Start Date'
DOMAIN AS 'Domain'
WHERE (DOMAIN EQ '&DOMAIN.Enter Domain:.' OR '&DOMAIN' EQ '');
ON TABLE PCHOLD FORMAT COMT
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
     LEFTMARGIN=0.250000,
     RIGHTMARGIN=0.250000,
     TOPMARGIN=0.250000,
     BOTTOMMARGIN=0.250000,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,COLUMN=SCHEDULE_ID ,WRAP=2,$
TYPE=REPORT,COLUMN=JOBDESC,WRAP=4.5,$
ENDSTYLE
END

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


Webfocus: 7.1.7/ OS: AIX Platform: Websphere
 
Posts: 5 | Location: Boston | Registered: June 25, 2008Report This Post
Expert
posted Hide Post
Adding
SET EMPTYREPORT=ON
may resolve the problem.
quote:
The EMPTYREPORT parameter controls the output generated when a TABLE request retrieves zero records.

EMPTYREPORT is not supported with TABLEF or Excel. When a TABLEF or Excel request retrieves zero records, an empty report is generated.

Note: Using the IF TOTAL or WHERE TOTAL phrases when EMPTYREPORT is set to OFF may produce an empty report if there is no data that satisfies the TOTAL condition. This occurs because the test for report lines for EMPTYREPORT is applied before the the TOTAL condition is applied.

The syntax is:

SET EMPTYREPORT={ANSI|ON|OFF}
where:

ANSI - Produces a single-line report and displays the missing data character or a zero if a COUNT is requested. in each case, &RECORDS will be 0, and &LINES will be 1.

If the SQL Translator is invoked, ANSI automatically replaces OFF as the default setting for EMPTYREPORT.

ON - Produces an empty report (column headings with no content). This was the default behavior in prior releases.

OFF - Produces no report output. OFF is the default value except for SQL Translator requests. When the SQL Translator is invoked, ANSI replaces OFF as the default setting for the EMPTYREPORT parameter, so the results are the same as for the ANSI setting.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Hi Francis.
Thanks for the suggestion. But, it did not really solve the problem, it still shows "no report to distribute message" I see following message in report caster log
quote:

SET DISTRIBUTE=OFF
Task finished.
No report to distribute.

Is there any way we can manipulate this setting to distribute the empty report?


Webfocus: 7.1.7/ OS: AIX Platform: Websphere
 
Posts: 5 | Location: Boston | Registered: June 25, 2008Report This Post
Expert
posted Hide Post
Hi Padma,

I consult with our internal experts and the suggestion is that you should open a case for this one so we can investigate the behavior. To open a case, please either call at 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report 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] Tab delimited file when no record found

Copyright © 1996-2020 Information Builders