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] Excel Compound Report using the same template

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Excel Compound Report using the same template
 Login/Join
 
Platinum Member
posted
Is it possible to have a compound excel report and use a excel template to style the report and setup the print settings but only use sheetnumber 1? I looked through the forums and online but havent seen anyone do what I am trying to do. Can someone please point me in the right direction?

Below is an example of what I found when using an template with an excel compound report but its putting the report on multiple tabs which I do not want. I want everything on sheetnumber 1.

  
FILEDEF TEMPLATE2 DISK TEMPLATE2.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE2 FORMAT EXL2K TEMPLATE 'TEMPLATE1' SHEETNUMBER 1
END
-RUN
FILEDEF TEMPLATE3 DISK TEMPLATE3.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE3 FORMAT EXL2K TEMPLATE 'TEMPLATE2' SHEETNUMBER 2
END
-RUN
FILEDEF TEMPLATE4 DISK TEMPLATE4.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE4 FORMAT EXL2K TEMPLATE 'TEMPLATE3' SHEETNUMBER 3
END
-RUN
TABLE FILE whatever
.
.
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'TEMPLATE4' SHEETNUMBER 4
END
-RUN


Below is what I am trying to do but can't get it to work.

  
FILEDEF TEMPLATE2 DISK TEMPLATE2.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE2 FORMAT EXL2K TEMPLATE 'TEMPLATE1' SHEETNUMBER 1
END
-RUN
FILEDEF TEMPLATE3 DISK TEMPLATE3.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE3 FORMAT EXL2K TEMPLATE 'TEMPLATE2' SHEETNUMBER 1
END
-RUN
FILEDEF TEMPLATE4 DISK TEMPLATE4.MHT
-RUN
TABLE FILE whatever
.
.
ON TABLE HOLD AS TEMPLATE4 FORMAT EXL2K TEMPLATE 'TEMPLATE3' SHEETNUMBER 1
END
-RUN
TABLE FILE whatever
.
.
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'TEMPLATE4' SHEETNUMBER 1
END
-RUN


Thanks,
prodrigu

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


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Master
posted Hide Post
This won't work, you would be writing over SHEETNUMBER 1 with each iteration.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Master
posted Hide Post
prodrigu, PB is correct, you are just overwritting everything in sheet 1.

You could always have an auto open macro move the data from sheet 2, 3, 4, etc. to sheet 1.

Also, if this is just data, just append the data in a hold file and then in the last step dump the data into the spreadsheet.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Platinum Member
posted Hide Post
jgelona,

Hate to ask but is it possible to show me an example?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Master
posted Hide Post
If this is just data, do something like this:
TABLE FILE FILE1
PRINT fld1 fld2 fld3...
WHERE ....
ON TABLE HOLD
END
-*
FILEDEF HOLD DISK hold.ftm (LRECL XX RECFM V APPEND
-*
TABLE FILE FILE2
PRINT fld1 fld2 fld3...
WHERE ....
ON TABLE SAVE AS HOLD
END
-*
TABLE FILE FILE3
PRINT fld1 fld2 fld3...
WHERE ....
ON TABLE SAVE AS HOLD
END
...
TABLE FILE HOLD
PRINT *
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE abc SHEETNUMBER 1
END
-RUN


In this example, all of the fld1, fld2, fld3 need to be the same format.

Do the first TABLE and follow it by a '? FILEDEF'. This will show you the LRECL for your HOLD file. This example also assumes you are doing HOLDFORMAT=ALPHA. If you are doing HOLDFORMAT=BINARY (default), use SAVB instead of SAVE.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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] Excel Compound Report using the same template

Copyright © 1996-2020 Information Builders