View previous topic :: View next topic
|
Author |
Message |
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
I have produced a file in EXL2K format in FOCUS language. My requirement is to zip the above produced file and email to some user. I have produced the file successfully. I have zipped the file using following in JCL
Code: |
-INDD(INFILE)
-ARCHOUTDD(OUTFILE)
-METHOD(MAXIMUM) |
Then i email the file using the following in JCL
Code: |
%XMITIP * -
SUBJECT 'TEST FILE' -
FROM (TEST@GMAIL.COM) -
MSGDD STEPS -
ADDRESSFILEDD ADDR -
FORMAT BIN/ZIP -
FILEDD (NHPRENW) |
But when i get the file in my email, i can't be able to open the file in Excel format. I am getting junk data. Can somebody please help me on where i am doing wrong? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The documentation that describes this data (EXL2K) should also provide direcrions on how to use thie file on some target system.
Is this a true Excel file or is this simply delimited data?
If the file is in a Microsoft proprietary format, you will possibly need to transfer the file in binary. If this is a delimited text file, the transfer would most likely need to be ascii. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
I didnt read that after the file was received that it was UNZIPPED. |
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Hello dick scherrer and Peter Holland: The actual requirement is to produced microsoft excel file with multiple tabs. So that will be done by using this EXL2K format. And i was able to produce the excel file with mutiple tabs successfully. Now this file needs to be zipped and then email to some user. When i zip the file then email to the user using the JCL already given, i have received the zip file in email but when i tried to open the zip and then the file in it, i am seeing the junk data.
Note: I FTP the file from mainframes to computer by using the format ASCII and then giving the file name as <somename>.xls and i able to open the file in microsoft excel and it do have multiple tabs. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
1. A ZIP file must be transferred in binary -- ASCII will translate characters and make the ZIP file unreadable.
2. Unless you do something to change the data from EBCDIC to ASCII, the file in the ZIP will not be usable since it was created on a mainframe that uses EBCDIC. Before you create the ZIP file, you must convert the data file to ASCII or the PC will not recognize any of the data. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If IBI will create a tabbed worksheet on the mainframe, they also provide direction on ow to use this on the target system.
As Robert mentioned, any ZIPped file must be transferred Using BINARY. I suspect this is also true if the file has embedded Excel control info. The best source of info about downloading this file created by IBI software is IBI support. |
|
Back to top |
|
|
|