IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Zipping and email the EXL2K format file in FOCUS language


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sat Dec 26, 2009 11:09 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Dec 27, 2009 2:46 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Dec 27, 2009 3:35 pm
Reply with quote

I didnt read that after the file was received that it was UNZIPPED.
Back to top
View user's profile Send private message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sun Dec 27, 2009 8:37 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Dec 27, 2009 8:54 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 28, 2009 4:30 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top