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     (FOC3289) TEMPLATE FILE: Error opening file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
(FOC3289) TEMPLATE FILE: Error opening file
 Login/Join
 
<Arun>
posted
Hi All,

I try to get a compound excel report using template in webfocus. The following is my code that use to achieve this task:

CODE:::::::::

APP HOLD HOLDDIR
APP FI COMPXLS_SINGLE1 DISK compxls_single1.MHT
TABLE FILE CAR
HEADING
"Report 1: W Germany"
PRINT DCOST BY COUNTRY BY CAR
ON TABLE HOLD AS COMPXLS_SINGLE1 FORMAT EXL2K TEMPLATE 'hello1' SHEETNUMBER 1
END
TABLE FILE CAR
HEADING
"Report 2: England"
PRINT RCOST BY COUNTRY BY CAR BY MODEL
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'compxls_single1' SHEETNUMBER 2
END

i have put the hello1.mht template in the holddir directory .

Still i get the following error message when i try to execute them in
http://XXXXX/ibi_html/homepage/adhoc.htm.


ERROR MESSAGE:::::::

0 NUMBER OF RECORDS IN TABLE= 18 LINES= 18
0 EXL2K FILE SAVED ...
(FOC3289) TEMPLATE FILE: Error opening file
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND


can anyone help me on this regard.
 
Report This Post
Platinum Member
posted Hide Post
Is your HOLDDIR in the app path?. If not that could be the reason.


WF7.1.4 Prod/Test, MRE, self serve, DM
 
Posts: 176 | Location: Desplaines | Registered: August 05, 2004Report This Post
Expert
posted Hide Post
APP HOLD places that folder in the PATH.

I did a FIND, EXL2K TEMPLATE, and the answer is there...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Arun,

Does your template have at least two worksheets?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<Arun>
posted
Thanks for all ur replies. the following code works fine for me.

i have created the template - 'cit_temp' with two sheets.

*****************************
APP HOLD holddir
APP FI test DISK test.mht

SQL SQLORA

SELECT DUMMY from dual
;

TABLE FILE SQLOUT
PRINT
*
ON TABLE HOLD AS hello1 FORMAT FOCUS
END

TABLE FILE hello1
PRINT
*
ON TABLE HOLD AS 'test' FORMAT EXL2K TEMPLATE 'cit_temp' SHEETNUMBER 1
END

SQL SQLORA

SELECT sysdate-1 from dual
;

TABLE FILE SQLOUT
PRINT
*
ON TABLE HOLD AS hello2 FORMAT FOCUS
END


TABLE FILE hello2
PRINT
*
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'test' SHEETNUMBER 2
END
*****************************

I have no issue in executing the above code in webconsole . But when i try to incorporate in my dev environment(unix) , i get the following error when i try to open the EXCEL :

'Report_uqixsbya[1]' is not a valid web archive

Pls let me know what could be the issue here.
 
Report 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     (FOC3289) TEMPLATE FILE: Error opening file

Copyright © 1996-2020 Information Builders