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     How to throw any message if there is no data (&LINES=0)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to throw any message if there is no data (&LINES=0)
 Login/Join
 
Member
posted
Hi all,

I have created reporting object which is based on the JOIN between two tables. Lets take EMPLOYEE and MANAGER are the two tables. I am joining them on the basis of EMP_ID. When I want to fetch MNGR_NAME for a criteria "WHERE MNGR_SALARY GE '1000000' " , for some EMP_ID it fetches data but for some EMP_ID it doesn't fetch any data. So, when there is no data to display it prints the Columnm names of the report which is not supposed to be printed.

Can anyone tell me how I can simply print or type a message in output like 'No Data for this EMP_ID', so that i can avoid blank report getting populated.

Any suggestion will be greatly appreciated.

Thanks,
Sagar


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 7 | Registered: August 26, 2013Report This Post
Gold member
posted Hide Post
The display of column names for an empty report or not is controlled by the parameter
SET EMPTYREPORT = {ON | OFF}

The solution for displaying a message for an emtyp report may look like this:
SET EMPTYREPORT = ON
-*SET EMPTYREPORT = OFF
SET PAGE-NUM = OFF
-SET &COUNTRY = 'HUNGARY';
TABLE FILE CAR
  SUM
    RETAIL_COST
    DEALER_COST
  BY COUNTRY
  BY CAR
  BY MODEL

  WHERE COUNTRY EQ '&COUNTRY'
-*  ON TABLE HOLD AS test
END
-RUN
-IF (&LINES LE 0) THEN GOTO :noRecs;
TABLE FILE test
  SUM
    RETAIL_COST
    DEALER_COST
  BY COUNTRY
  BY CAR
  BY MODEL
END
-RUN
-GOTO :end

-:noRecs
-TYPE There is no result for country &COUNTRY

-:end


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Member
posted Hide Post
Sorry for late reply!

Thanks Michael! Smiler

"SET EMPTYREPORT = ON " does really helped.

Thanks again!
Sagar


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 7 | Registered: August 26, 2013Report 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     How to throw any message if there is no data (&LINES=0)

Copyright © 1996-2020 Information Builders