Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2429
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: 7996
Location: Bellevue, IA

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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us