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.
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, prodriguThis message has been edited. Last edited by: Kerry,
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, 2006