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     Help with a Compound PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Help with a Compound PDF
 Login/Join
 
Member
posted
WF Version 7.1.3 on UNIX

Hello all,

I have a problem with a compound report. I have 5 pdf reports in separate FEXs that all run fine independently. I want to string them together into a single pdf document. Within each report, I used ON TABLE PCHOLD FORMAT PDF.

So, to create the compound report I tried to use:

SET COMPOUND=OPEN
-INCLUDE PDFREPORT1
-INCLUDE PDFREPORT2
-INCLUDE PDFREPORT3
-INCLUDE PDFREPORT4
SET COMPOUND=CLOSE
-INCLUDE PDFREPORT5

I get back an HTML page with the following warnings/messages. Changing the subhead text (which is in each report) has no effect, though I haven't tried removing them altogether. It looks like the report is running, but the warning is suppressing the pdf report. Any ideas.

0 NUMBER OF RECORDS IN TABLE= 66350 LINES= 66350
0 NUMBER OF RECORDS IN TABLE= 66350 LINES= 66350
0 ERROR AT OR NEAR LINE 36 IN PROCEDURE ZAPP0003FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 38 IN PROCEDURE ZAPP0003FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 NUMBER OF RECORDS IN TABLE= 31646 LINES= 34
0 ERROR AT OR NEAR LINE 34 IN PROCEDURE ZAPP0004FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 NUMBER OF RECORDS IN TABLE= 31646 LINES= 7
0 ERROR AT OR NEAR LINE 39 IN PROCEDURE ZAPP0005FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 NUMBER OF RECORDS IN TABLE= 29636 LINES= 12
0 ERROR AT OR NEAR LINE 39 IN PROCEDURE ZAPP0006FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 NUMBER OF RECORDS IN TABLE= 29636 LINES= 40
0 ERROR AT OR NEAR LINE 37 IN PROCEDURE ZAPP0007FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 39 IN PROCEDURE ZAPP0007FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 NUMBER OF RECORDS IN TABLE= 31646 LINES= 173


Brett Magill
Office of Planning and Decision Resources
Saint Louis University
WF Version 7.1.3 on UNIX
 
Posts: 4 | Registered: June 18, 2007Report This Post
Expert
posted Hide Post
The first thing I'd try is to stick a -RUN right after each of the two SET COMPOUND commands. I'd also stick a -RUN after every report within those -INCLUDEs.


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
Virtuoso
posted Hide Post
You also have the 'close' before the last report. I've found the only way to get the compound report to display is to edit the last report and change the pchold format pdf to be
on table set online-fmt pdf
and close the compound report within the last report not outside the report. Of course there may be better ways.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
The code should work as is. Here's an example that works, with SET COMPOUND not set with an ON TABLE command:

-SET &ECHO=ALL;

SET PAGE-NUM=OFF
-RUN

-* Report 1 --------------------------------------

SET COMPOUND = OPEN
-RUN

TABLE FILE CENTORD
HEADING
"Sales Report "
"Page<TABPAGENO"
" "
SUM LINEPRICE
BY PRODCAT
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=BLUE, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN

-* Report 2 --------------------------------------

TABLE FILE CENTORD
HEADING
"Sales Report "
"Page<TABPAGENO"
" "
SUM LINEPRICE
BY PRODCAT
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=RED, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN

-* Report 3 --------------------------------------

SET COMPOUND = CLOSE
-RUN

TABLE FILE CENTORD
HEADING
"Sales Report "
"Page<TABPAGENO"
" "
SUM LINEPRICE
BY PRODCAT
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=GREEN, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN


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
Thank you to all who replied. I have tried this a few ways now and cannot get it to work properly.

1. I stuck in the -RUN after each SET and INCLUDE as suggested. The result was exactly the same.

2. I tried putting the command on the tables as Leah suggested with online-format. No luck that way.

3. When I have this in all 5 procedures:

ON TABLE SET COMPOUND
ON TABLE ONLINE FORMAT PDF

I get a compound HTML report. Oddly, I get a reports with those commands, but if I put in the OPEN and CLOSE at the first and last report (as I thought it should work), I get no report and the warning messages.

I am open to any other suggestions. Thanks.


Brett Magill
Office of Planning and Decision Resources
Saint Louis University
WF Version 7.1.3 on UNIX
 
Posts: 4 | Registered: June 18, 2007Report This Post
Virtuoso
posted Hide Post
Back to the original problem...do you have Subfoots and Subheads? And if so..can you post a piece of the code that mentions them?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
ON COLLEGE_TYPE SUBHEAD AS 'College Type'
"COLLEGE_TYPE"
ON STVCOLL_DESC SUBHEAD AS 'College Name'
"STVCOLL_DESC"

NOTE: There should be a < symbol before the COLLEGE_TYPE and STVCOLL_DESC on the second line of each, but it did not display correctly in the post, so I took it out.

With COLLEGE_TYPE and STVCOLL_DESC as BY fields in the body of the report. There may be NULL values in these by fields. As the reports display in pdf if run one-by-one, I assumed this was the case and that this message is merely a "warning" rather than an "error".


BTW: With regard to my previous post, I get the "compound" HTML report with all of the compound and formatting statements taken out completely, so I guess that wasn't really an improvement, alas.

This message has been edited. Last edited by: Brett Magill,


Brett Magill
Office of Planning and Decision Resources
Saint Louis University
WF Version 7.1.3 on UNIX
 
Posts: 4 | Registered: June 18, 2007Report This Post
Expert
posted Hide Post
quote:
ON COLLEGE_TYPE SUBHEAD AS 'College Type'

is not correct syntax. It should be:

ON COLLEGE_TYPE SUBHEAD
"<COLLEGE_TYPE"
ON STVCOLL_DESC SUBHEAD
"<STVCOLL_DESC"


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
Francis wrote:

It should be:

ON COLLEGE_TYPE SUBHEAD
"ON STVCOLL_DESC SUBHEAD
"
Yes. That was the problem. It now works just fine with ON TABLE PCHOLD FORMAT PDF in each report and:

SET COMPOUND=OPEN
-INCLUDE PDFREPORT1
-INCLUDE PDFREPORT2
-INCLUDE PDFREPORT3
-INCLUDE PDFREPORT4
SET COMPOUND=CLOSE
-INCLUDE PDFREPORT5

Thank you to everyone who responded.

Here is a rhetorical question and a bit of a complaint. Why would WF let this run perfectly in PDF when each of these reports was run individually and only produce an error when I tried to create the compound report? Certainly had me looking in the wrong place for the problem.


Brett Magill
Office of Planning and Decision Resources
Saint Louis University
WF Version 7.1.3 on UNIX
 
Posts: 4 | Registered: June 18, 2007Report This Post
Expert
posted Hide Post
I think the error was probably generated, but the PDF got created anyway. Did you try running one of the individual reports as HTMl and viewed the source of the HTML rpeort, I think you'd see the error.


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
Virtuoso
posted Hide Post
Francis...I'm sure this has been mentioned before...but how do you get < symbol
to comeout right in the posting.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
I ALWAYS put my program code in between
[code]
[/code]

tags. And I set the Options to "Disable HTML" if there's HTML in my code.


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
Virtuoso
posted Hide Post
Thanks


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Brett,

I have an alternative answer to your rhetorical question. The WebFOCUS works in mysterious ways. Might as well get used to it.


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report 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     Help with a Compound PDF

Copyright © 1996-2020 Information Builders