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     [SOLVED]empty report with footing

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]empty report with footing
 Login/Join
 
Member
posted
Hi All,

I am developing a report with heading and footing. The report should display the footing at the time of empty report. But I am unable to get footing in the output. please Any body suggust me.

Thanks
KOteswar

Example;

SET EMPTYREPORT = ON
TABLE FILE EMPDATA
PRINT *
WHERE DEPT EQ ' ';
HEADING
" HAI"
FOOTING
"BYE"
END

WebFOCUS 7.6.4, Oracle 9i, Windows XP.

This message has been edited. Last edited by: Koteswar,
 
Posts: 23 | Registered: May 20, 2008Report This Post
Gold member
posted Hide Post
Instead of having footing for Empty record set, use the same code to print the Footing irrespective of the data returned. You can do this by making the report compound and appending the dummy records at the last to ensure that footing always appears on the report.

Eg:

SET EMPTYREPORT = ON
TABLE FILE EMPDATA
PRINT *
ON TABLE PCHOLD FORMAT EXL2K OPEN
END
TABLE FILE CAR
PRINT MODEL NOPRINT
FOOTING
"BYE"
ON TABLE PCHOLD FORMAT EXL2K CLOSE


Hope this helps.


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Virtuoso
posted Hide Post
Try this:

SET EMPTYREPORT = ANSI
-*
TABLE FILE CAR
 PRINT COUNTRY CAR MODEL
 WHERE TOTAL COUNTRY EQ 'SPAIN';
 ON TABLE HOLD
END
-* 
TABLE FILE HOLD
 PRINT *
 HEADING
  "Hi"
 FOOTING
  "Bye"
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Virtuoso
posted Hide Post
There was a similar post recently that gave several suggestions for this. Your observation that a footing is not generated for an empty report is correct. A heading can be generated, but a footing cannot. The compound report idea will work, but that just seems like overkill for something simple like this (in addition to the fact that the syntax that Swap uses is the "old" syntax and is no longer generated by the GUI tools this way.)

Best way would be something like Dan has. Run the procedure, test to see if &RECORDS EQ 0 and, if so, branch to a separate procedure that gives the output you want.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
In relation to Dan's suggestion, I found this technique.

http://techsupport.information...utions/30862015.html


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Actually, the SUBFOOT isn't necessary - either FOOTING or SUBFOOT will work. The reason the HOLD file was neceassry in my ealier post is because the TOTAL was inadvertently left in the WHERE clause from an earlier test.

SET EMPTYREPORT = ANSI
-*
TABLE FILE CAR
 PRINT COUNTRY CAR MODEL
 WHERE COUNTRY EQ 'SPAIN';
 HEADING
  "Hi"
 FOOTING
  "Bye"
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
Good One Dan

Its interesting that the technique above was dated 2007, it is by no means new.



FYI

I fount the technique by using the search function here. I've found many useful things with it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Waz, thanks for the link. First time I've seen Magnify in the real world.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
I always find myself using this as a first port of call when I have an issue.

I've found some links that come out of it do not work (or are restricted)

The only real issue I've had is what words to search for.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Waz,

I am thanking you for link also, it now in favorites Smiler

I think that people not necessarily use search first but should do as Francis say here.

Other problem people no speak Engrish well and is their next language. This problem is when using Engrish based forum like this but I know people try to show help in other language like Ira and TonyA here which is good but when use Engrish based SW there requires Engrish understand.

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 106 | Registered: April 06, 2009Report This Post
Virtuoso
posted Hide Post
So it's the EMPTYREPORT=ANSI instead of EMPTYREPORT=ON that makes the difference. Using EMPTYREPORT=ON, you will not get a footing. It would be interesting to know how that setting is changing the internal processing.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
Based on what I've read, when EMPTYREPORT=ON is used and no records are retrieved, then only HEADING and column titles are displayed. Both &RECORDS and &LINES are set to 0.

With EMPTYREPORT=ANSI and no records retrieved, WF "fakes" one line with values of 0 for numeric fields and blank for alpha fields. In this case, a whole report is produced (with one empty record) so FOOTING is also displayed. &RECORDS is still set to 0 but &LINES is set to 1.

I need to read again to get the facts clear but hopefully I'm not that off Wink



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Member
posted Hide Post
Hi All,

Thanks to one and all to share knowledge with me. It is really helpful to me.

Regards
Koteswar
 
Posts: 23 | Registered: May 20, 2008Report 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     [SOLVED]empty report with footing

Copyright © 1996-2020 Information Builders