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.
This is the my main procedure and I want to display the message in case of no records "No records are there",
I tried using SET EMPTYREPORT = ANSI (or ON) , but displaying the column names and value as 0.
I need to display message instead of this.
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -SET ECHO = ALL; SET EMPTYREPORT = ANSI SET ASNAMES = ON SET SQUEEZE=ON -DEFAULT &FROM_DATE='07/21/2015'; -DEFAULT &TO_DATE='08/21/2015'; SQL DB2 EX SYSPROC.TEST('&FROM_DATE','&TO_DATE')@ ; TABLE FILE SQLOUT SUM CNT.CUST_ACCT BY CUST_ACCT ENDSTYLE END
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -SET ECHO = ALL; SET EMPTYREPORT = ANSI SET ASNAMES = ON SET SQUEEZE=ON SQL DB2 EX SYSPROC.Q9WEBSP('&FROM_DATE','&TO_DATE')@ ; TABLE FILE SQLOUT SUM CNT.STOP_PYMT_CHANNEL AS COUNT COMPUTE TOTCNTSEATS/I5=LAST TOTCNTSEATS + CNT.STOP_PYMT_CHANNEL; NOPRINT BY STOP_PYMT_CHANNEL AS 'STOP PAYMENT CHANNEL' ENDSTYLE END
Can anyone please suggest.
Thanks , User1This message has been edited. Last edited by: <Kathryn Henning>,
Hi , As per the suggestion, I have tried below code, but still showing the record count as 0.
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -SET ECHO = ALL; SET ASNAMES = ON SET SQUEEZE=ON SET EMPTYREPORT = ANSI
SQL DB2 EX SYSPROC.TEST('&STOPPED_FROM_DATE','&STOPPED_TO_DATE')@ ; TABLE FILE SQLOUT SUM CNT.CUST_ACCT_NO AS COUNT COMPUTE TOTCNTSEATS/I5=LAST TOTCNTSEATS + CNT.CUST_ACCT_NO; NOPRINT BY CUST_ACCT_NO AS 'CUSTOMER ACCOUNT' HEADING " COUNT BY ACCOUNT" FOOTING "TOTAL COUNT= ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL -*ON TABLE PCHOLD FORMAT &WFFMT.(Inline,Excel).output. ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL -*ON TABLE PCHOLD FORMAT HTML ON TABLE HOLD AS MYREPORT ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
-IF &LINES EQ 0 THEN GOTO NORECS ELSE GOTO DOREPORT; -NORECS -TYPE +---------------------------------------------+ -TYPE | No records have been returned for this | -TYPE | request. Please try again later or with | -TYPE | different criteria. | -TYPE +---------------------------------------------+ -GOTO ENDIF -************************************DO report
-IF &LINES EQ 0 THEN GOTO NORECS ELSE GOTO DOREPORT;
After this, use a -INCLUDE for another fex instead of writing it out for each of your reports. Lot easier on the next guy that has to change the wording across all reporting.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server