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     [Case-Opened] Error FOC3290: Output in EXL2K Worksheets

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Case-Opened] Error FOC3290: Output in EXL2K Worksheets
 Login/Join
 
Platinum Member
posted
Hi,

I am trying to fetch two reports in WORKSHEET 1 and 2 in Excel.

I am getting the following error. Could anyone help me.

(FOC3290) TEMPLATE FILE must be in "Single File Web Page" format

I have created a MHT file in baseapp.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Hello Vinay,
when you save the EXL2K File as an *.mht you can chose in the save as properties "whole work folder" or Range "table". i think you have chosen Range "table". I had the same problem some days ago!!

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Platinum Member
posted Hide Post
Christian,

Are you talking about below properties?



WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Vinay,
yes!!!! i use a german windows version and was not sure abaout the right translation. you have to chose entire workbook!!

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Platinum Member
posted Hide Post
Christian,

From the beginning i have been using the same settings, still i am getting the same error.

Any other solution?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Vinay,

which Excel Version are you using to build the .mht file. I used 2003, because with 2007 it did not work!!

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Platinum Member
posted Hide Post
I am using 2003 version only!


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Vinay,
Can you post your code (or part of it)? Thanks

L
 
Posts: 117 | Location: Denver | Registered: July 27, 2005Report This Post
Platinum Member
posted Hide Post
Hi,

Could any one tell me how to do this in mainframe focus?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Excel 2000 doesn't support "Web Archive file format"? Is that true?

Multiple workbooks in Excel


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Below code has worked on mainframe focus.

  
TABLE FILE File1                             
PRINT Field1                                    
  ON TABLE HOLD AS OUTPUT1 FORMAT EXL2K OPEN 
  ON TABLE SET STYLE     
  TYPE=REPORT, TITLETEXT='REPORT 1', $             
  TYPE=HEADING, SIZE=18, $               
ENDSTYLE
END                                              
TABLE FILE File2
  PRINT Field2                               
  ON TABLE HOLD AS OUTPUT1 FORMAT EXL2K CLOSE
  ON TABLE SET STYLE 
  TYPE=REPORT, TITLETEXT='REPORT 2', $             
  TYPE=HEADING, SIZE=18, $                         
ENDSTYLE
END                                  
FIN  


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Guru
posted Hide Post
Make sure your mht file has at least 2 sheets WITH CONTENTS, or you will get that error.


(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: 391 | Location: California | Registered: April 14, 2003Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by N.Selph:
Make sure your mht file has at least 2 sheets WITH CONTENTS, or you will get that error.


With Contents?
You mean to say there should be some data in mht file before executing the procedure?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Member
posted Hide Post
I recently used Excel Templates and ran into the same error.

N.Selph is correct, you need two worksheets. One where the data (produced by WebFOCUS/FOCUS)will be loaded. The other worksheet will be the formatted end-result that you want the user to see.

On the "formatted" worksheet include some content. Column headers, alternate row colors, etc. Also you will need to reference the cells of the data sheet on the formatted sheet. Something like =Data!A14

Hope this helps.


WebFOCUS 7.6.11
Developer Studio on Windows XP. Server Components running on Windows Server 2003.
Excel, HTML, PDF
 
Posts: 21 | Registered: August 26, 2009Report This Post
Expert
posted Hide Post
Hi all,

FYI, info from our internals: The code you are running on the mainframe should also work from WebFOCUS. The ON TABLE SET STYLE needs an ‘*’ after it and I would also change the HOLD to PCHOLD to display the output.

All the comments about having an Excel workbook with 2 sheets with contents is absolutely correct when using Excel Templates. I believe this case is strictly a 2 worksheet compound document and should not need templates.


Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Platinum Member
posted Hide Post
Kerry & Redapple,

sorry, still i haven't understood what you guys meant by content in excel sheet.

Could any one place a screen shot here.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Expert
posted Hide Post
Hi Vinay,

From our internals: This is not an Excel TEMPLATE issue, so don’t worry about the comments regarding the requirements of using Excel Templates until you plan to go that direction.

This code will give you want you are looking for – an excel workbook with 2 worksheets called Report 1 and Report 2.

TABLE FILE CAR                             
PRINT COUNTRY                                    
  ON TABLE PCHOLD AS OUTPUT1 FORMAT EXL2K OPEN 
  ON TABLE SET STYLE *
  TYPE=REPORT, TITLETEXT='REPORT 1', $             
  TYPE=HEADING, SIZE=18, $               
ENDSTYLE
END                                              
TABLE FILE EMPDATA
  PRINT PIN                               
  ON TABLE PCHOLD AS OUTPUT1 FORMAT EXL2K CLOSE
  ON TABLE SET STYLE *
  TYPE=REPORT, TITLETEXT='REPORT 2', $             
  TYPE=HEADING, SIZE=18, $                         
ENDSTYLE
END


Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Platinum Member
posted Hide Post
I already tried that code and it worked for me.

Anyways Thanks Kerry!!


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Records: 1 million

How to break the workbook (In Excel) after reaching the max records i.e 65K.

Output:
Workbook 1: 65K records
Workbook 2: 65K records
and so on.

Could any one help me!


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Silver Member
posted Hide Post
Hi Vinay,
TABLE FILE CAR
PRINT *
COMPUTE LINENUM/I9 = LINENUM + 1;
ON TABLE SET ASNAMES ON AND HOLDLIST PRINTONLY
ON TABLE HOLD AS HDFNL
END
-RUN
-SET &LINES_C = &LINES;
-SET &MAXROWS=65000;

-SET &CMPND = IF &LINES_C EQ 0 THEN 'CLOSE' ELSE 'OPEN';
-SET &LOOPNUM = IF &LINES_C GT &MAXROWS THEN 2 ELSE 1;
-REPEAT ENDAIR FOR &CT FROM 1 TO &LOOPNUM
-SET &STDWHERE = IF &CT EQ &LOOPNUM AND &LOOPNUM NE 1 THEN 'WHERE LINENUM GT &MAXROWS.EVAL' ELSE 'WHERE LINENUM LE &MAXROWS.EVAL';
-SET &SHEETNAME = IF &CT EQ &LOOPNUM AND &LOOPNUM NE 1 THEN 'SHEET 2' ELSE 'SHEET 1';
-SET &CMPND = IF &CT NE &LOOPNUM THEN 'OPEN'
-ELSE IF &CT EQ &LOOPNUM AND &CMPND EQ 'CLOSE' THEN 'CLOSE'
-ELSE 'OPEN';
SET COMPOUND = &CMPND.EVAL
TABLE FILE HDFNL
PRINT
*
BY LINENUM NOPRINT
&STDWHERE.EVAL
ON TABLE SET ONLINE-FMT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT, FONT=ARIAL, SIZE=8, TITLETEXT='&SHEETNAME.EVAL',$
TYPE=TITLE, STYLE=BOLD, JUSTIFY=CENTER,$
TYPE=DATA, COLUMN=STMT_DT, JUSTIFY=RIGHT,$
TYPE=DATA, COLUMN=TRANS_DT, JUSTIFY=RIGHT,$
TYPE=DATA, COLUMN=TKT_ISS_DT1, JUSTIFY=RIGHT,$
TYPE=DATA, COLUMN=TRAV_DPRT_DT, JUSTIFY=RIGHT,$
ENDSTYLE
END
-RUN
-ENDAIR


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
Platinum Member
posted Hide Post
Thanks Shakila! I shall test and let you know! BTW have you tried it?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Guru
posted Hide Post
The contents in the 2 worksheets don't need to be anything more than a label like
"Data will go here" in cell A1 in one sheet, and " " (space) in cell A1 in a second sheet.


(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: 391 | Location: California | Registered: April 14, 2003Report This Post
Platinum Member
posted Hide Post
Thanks Selph!


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report 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     [Case-Opened] Error FOC3290: Output in EXL2K Worksheets

Copyright © 1996-2020 Information Builders