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     [SOLVED] Repost of question about EXL2k

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Repost of question about EXL2k
 Login/Join
 
Member
posted
(I'm sorry, the original post for the EXL2k didn't work right, so I am reposting.)

Mainframe Focus 7.3.8
WinXP
Excel 2007

I am having problems opening a file in Excel saved as the EXL2K format.

I used to be able to run a Focus progam that saved the file in the EXL2K format and open it in Excel 2007. My program would delete the old Excel file, re-allocate it, and save it to the mainframe. Then I had a pc bat file set up that would transfer the file from the mainframe to a file on the pc. Then I could open it in Excel as an Excel 2007 file with over 65,000 records and do whatever with it.
The company gave me a new computer and took the old one away before I had a chance to save my bat files. I had to re-create my bat files using a bat file that saved the files as an XLS format. I changed it for the 2007 format. Now when I run the bat file, I get an error telling me that Excel cannot open the file because the file format or file extension is not valid. The file transfers ok, but it won't open. When I look at the raw mainframe file, it appears to be a HTML file.
I tested the program saving the Focus file in the EXCEL format and changing the bat file to save as XLS. The file transferred successfully and the mainframe output is unreadable, but I am able to open it in Excel with no problems.

What am I doing wrong? I am including the Focus file , the bat file , the ftp file, and the mainframe file.



Thanks

Carroll
This is the program I used to create the Excel file.

DYNAM DELETE user01.DUMP01.EX2K
DYNAM ALLOC FI TEMP01X DA user01.DUMP01.EX2K -
LRECL 8192 BLKSIZE 8192 RECFM U -
SPACE 200,200 CYL NEW REUSE
-RUN
TABLE FILE EPM515
PRINT *
ON TABLE HOLD AS TEMP01X FORMAT EXL2K
END
-RUN
DYNAM FREE FI TEMP01X
-RUN
-TYPE THIS FILE SAVED TO user01X XL2K
-RUN


These are the bat files that I transferred with.

Batch File

user01excelnew.bat
FTP -s:user01excelnew.ftp
exit
quit



FTP
user01excelnew.ftp
open host
user01
password
binary
get 'user01.DUMP01.EX2K ' C:\data\Excel_dump.xlsx

This message has been edited. Last edited by: <Kathryn Henning>,


7.3.8 Mainframe
Excel
 
Posts: 2 | Registered: April 05, 2013Report This Post
Expert
posted Hide Post
I'd have to start out with the question: Can you open the excel file if you were to copy it from the mainframe manually? I mean, was the file created from your HOLD statement successful? Or, is the problem with the transfer?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
OK, got it to work with help from John Edwards, Doug, and John B. here at work. The problem was the file extension that I was using. The file transfer was working, but in Focus, the output is an HTML format (ascii) and I was saving as an XLSX format (binary). Excel didn't recognize it a valid Excel format so it choked on it. John B. copied it using a different file extension and was able to open it. From now on, I will use the extension ex2k then I can say OK to open it. Thanks to all who helped.


7.3.8 Mainframe
Excel
 
Posts: 2 | Registered: April 05, 2013Report This Post
<Kathryn Henning>
posted
Hi Cjolly,

Just so you know, the other topic not displaying correctly has been removed.

Thanks to everyone's input on this one.

Cheers,

Kathryn
 
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     [SOLVED] Repost of question about EXL2k

Copyright © 1996-2020 Information Builders