Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Zipping and email the EXL2K format file in FOCUS language

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Zipping and email the EXL2K format file in FOCUS language
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

Site Director


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

PostPosted: Sun Dec 27, 2009 2:46 am    Post subject:
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: 2446
Location: Netherlands, Amstelveen

PostPosted: Sun Dec 27, 2009 3:35 pm    Post subject:
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    Post subject: Reply to: Zipping and email the EXL2K format file in FOCUS l
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: 8217
Location: Dubuque, Iowa, USA

PostPosted: Sun Dec 27, 2009 8:54 pm    Post subject:
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

Site Director


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

PostPosted: Mon Dec 28, 2009 4:30 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us