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: 2442
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: 8165
Location: East Dubuque, Illinois, 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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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